]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_ioctls: add missing open arg
authorSage Weil <sage@newdream.net>
Tue, 6 Oct 2009 16:48:12 +0000 (09:48 -0700)
committerSage Weil <sage@newdream.net>
Tue, 6 Oct 2009 17:07:37 +0000 (10:07 -0700)
src/client/test_ioctls.c

index f8c452cd090e07742aa2ce1ef08c1ed09d2738ea..0b110a62aa115f37763e3cc9575d1f669cf67d8b 100644 (file)
@@ -26,7 +26,7 @@ int main(int argc, char **argv)
        }
        fn = argv[1];
 
-       fd = open(fn, O_CREAT|O_RDWR);
+       fd = open(fn, O_CREAT|O_RDWR, 0644);
        if (fd < 0) {
                perror("couldn't open file");
                return 1;