Browse code

Merge pull request #36043 from Microsoft/jjh/fixopenfilecall

LCOW: Fix OpenFile parameters

Yong Tang authored on 2018/01/18 05:03:11
Showing 1 changed files
... ...
@@ -33,7 +33,7 @@ func (l *lcowfs) OpenFile(path string, flag int, perm os.FileMode) (_ driver.Fil
33 33
 	flagStr := strconv.FormatInt(int64(flag), 10)
34 34
 	permStr := strconv.FormatUint(uint64(perm), 8)
35 35
 
36
-	commandLine := fmt.Sprintf("%s %s %s %s", remotefs.RemotefsCmd, remotefs.OpenFileCmd, flagStr, permStr)
36
+	commandLine := fmt.Sprintf("%s %s %s %s %s", remotefs.RemotefsCmd, remotefs.OpenFileCmd, path, flagStr, permStr)
37 37
 	env := make(map[string]string)
38 38
 	env["PATH"] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:"
39 39
 	processConfig := &hcsshim.ProcessConfig{