diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sudo/visudo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sudo/visudo.c b/usr.bin/sudo/visudo.c index 70f763c1467..22ff892e3cd 100644 --- a/usr.bin/sudo/visudo.c +++ b/usr.bin/sudo/visudo.c @@ -166,7 +166,7 @@ main(argc, argv) * Open sudoers, lock it and stat it. * sudoers_fd must remain open throughout in order to hold the lock. */ - sudoers_fd = open(sudoers, O_RDWR | O_CREAT); + sudoers_fd = open(sudoers, O_RDWR | O_CREAT, SUDOERS_MODE); if (sudoers_fd == -1) { (void) fprintf(stderr, "%s: %s: %s\n", Argv[0], sudoers, strerror(errno)); |