diff options
author | 2016-03-16 08:34:11 +0000 | |
---|---|---|
committer | 2016-03-16 08:34:11 +0000 | |
commit | 7ed4ab4b8c57187e1f7c7ebda1919e60675e85f6 (patch) | |
tree | f430a42897580d2db00421006921177328d82ae6 | |
parent | knock out unused Pp in previous; (diff) | |
download | wireguard-openbsd-7ed4ab4b8c57187e1f7c7ebda1919e60675e85f6.tar.xz wireguard-openbsd-7ed4ab4b8c57187e1f7c7ebda1919e60675e85f6.zip |
There's no reason to have execute permissions on a file system image.
ok millert
-rw-r--r-- | sbin/newfs_ext2fs/newfs_ext2fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs_ext2fs/newfs_ext2fs.c b/sbin/newfs_ext2fs/newfs_ext2fs.c index 0ec790b6955..0e95edc679c 100644 --- a/sbin/newfs_ext2fs/newfs_ext2fs.c +++ b/sbin/newfs_ext2fs/newfs_ext2fs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newfs_ext2fs.c,v 1.24 2016/03/14 20:30:34 natano Exp $ */ +/* $OpenBSD: newfs_ext2fs.c,v 1.25 2016/03/16 08:34:11 natano Exp $ */ /* $NetBSD: newfs_ext2fs.c,v 1.8 2009/03/02 10:38:13 tsutsui Exp $ */ /* @@ -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) |