aboutsummaryrefslogtreecommitdiff
path: root/util-linux/flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/flock.c')
-rw-r--r--util-linux/flock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/flock.c b/util-linux/flock.c
index e9be4eee9..05a747f72 100644
--- a/util-linux/flock.c
+++ b/util-linux/flock.c
@@ -45,7 +45,7 @@ int flock_main(int argc UNUSED_PARAM, char **argv)
45 if (argv[1]) { 45 if (argv[1]) {
46 fd = open(argv[0], O_RDONLY|O_NOCTTY|O_CREAT, 0666); 46 fd = open(argv[0], O_RDONLY|O_NOCTTY|O_CREAT, 0666);
47 if (fd < 0 && errno == EISDIR) 47 if (fd < 0 && errno == EISDIR)
48 fd = open(argv[0], O_RDONLY|O_NOCTTY); 48 fd = open(argv[0], O_RDONLY|O_NOCTTY);
49 if (fd < 0) 49 if (fd < 0)
50 bb_perror_msg_and_die("can't open '%s'", argv[0]); 50 bb_perror_msg_and_die("can't open '%s'", argv[0]);
51 //TODO? close_on_exec_on(fd); 51 //TODO? close_on_exec_on(fd);