I don't see how execute permissions on a file system image would be
useful.

Ok?


Index: newfs_ext2fs.c
===================================================================
RCS file: /cvs/src/sbin/newfs_ext2fs/newfs_ext2fs.c,v
retrieving revision 1.24
diff -u -p -r1.24 newfs_ext2fs.c
--- newfs_ext2fs.c      14 Mar 2016 20:30:34 -0000      1.24
+++ newfs_ext2fs.c      15 Mar 2016 21:31:17 -0000
@@ -241,7 +241,7 @@ main(int argc, char *argv[])
                /* creating image in a regular file */
                if (!Nflag && fssize > 0)
                        fl |= O_CREAT;
-               fd = open(special, fl, 0777);
+               fd = open(special, fl, 0666);
                if (fd == -1)
                        err(EXIT_FAILURE, "can't open file %s", special);
                if (fstat(fd, &sb) == -1)

natano

Reply via email to