]> git.puffer.fish Git - matthieu/frr.git/commitdiff
stop/start of zebra creates empty Quagga.conf file when "no service
authorDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 13 Apr 2016 20:52:48 +0000 (20:52 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 13 Apr 2016 20:52:48 +0000 (20:52 +0000)
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

vtysh/vtysh_main.c

index 798dd7c9dc0963f69b8ce7a91696b575b4289af0..3c06eec7e9a5fa65ad5e0f3c349ab0153fad3119 100644 (file)
@@ -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",