summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-04-13 20:52:48 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-04-13 20:52:48 +0000
commit6ac014d0d7c1579a5ea8698f4060e83713f19294 (patch)
treea8969c44e301faf3d2dadb6bf2bf0db91dbee042
parent9e9ca964ece098a01f594e259565ed442ae8aeda (diff)
stop/start of zebra creates empty Quagga.conf file when "no service
integrated-vtysh-config" Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-10403 We do not need to pass O_CREAT to open() when creating the flock file
-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",