From: Daniel Walton Date: Wed, 13 Apr 2016 20:52:48 +0000 (+0000) Subject: stop/start of zebra creates empty Quagga.conf file when "no service X-Git-Tag: frr-2.0-rc1~967^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6ac014d0d7c1579a5ea8698f4060e83713f19294;p=matthieu%2Ffrr.git stop/start of zebra creates empty Quagga.conf file when "no service integrated-vtysh-config" Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Ticket: CM-10403 We do not need to pass O_CREAT to open() when creating the flock file --- 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",