summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vtysh/vtysh_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index 798dd7c9dc..3c06eec7e9 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -246,7 +246,7 @@ vtysh_flock_config (const char *flock_file)
{
int count = 0;
- flock_fd = open (flock_file, O_RDONLY | O_CREAT , 0644);
+ flock_fd = open (flock_file, O_RDONLY, 0644);
if (flock_fd < 0)
{
fprintf (stderr, "Unable to create lock file: %s, %s\n",