]> git.pld-linux.org Git - projects/setup.git/commitdiff
Missing mode for open.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 31 May 2013 18:29:36 +0000 (18:29 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 31 May 2013 18:29:36 +0000 (18:29 +0000)
Changed files:
    update-fstab.c -> 1.5

update-fstab.c

index 396c1afe9a22f4d477d2f6b682b6dce5915a9804..fc3c7b6d9ee831216fcbf367344f58dea9d494ec 100644 (file)
@@ -73,7 +73,7 @@ int main()
                return 0;
        }
        
-       fd = open(name, O_WRONLY|O_CREAT|O_TRUNC);
+       fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
        if (fd < 0) {
                eputs("\nError: can't open file for writing\n");
                return 4;
This page took 0.10893 seconds and 4 git commands to generate.