diff options
Diffstat (limited to 'util-linux/flock.c')
-rw-r--r-- | util-linux/flock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/flock.c b/util-linux/flock.c index e9be4ee..05a747f 100644 --- a/util-linux/flock.c +++ b/util-linux/flock.c @@ -45,7 +45,7 @@ int flock_main(int argc UNUSED_PARAM, char **argv) if (argv[1]) { fd = open(argv[0], O_RDONLY|O_NOCTTY|O_CREAT, 0666); if (fd < 0 && errno == EISDIR) - fd = open(argv[0], O_RDONLY|O_NOCTTY); + fd = open(argv[0], O_RDONLY|O_NOCTTY); if (fd < 0) bb_perror_msg_and_die("can't open '%s'", argv[0]); //TODO? close_on_exec_on(fd); |