]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: zebra.h uses pwd.h when it should not
authorDonald Sharp <sharpd@nvidia.com>
Thu, 4 Jan 2024 21:25:09 +0000 (16:25 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 9 Jan 2024 17:50:40 +0000 (12:50 -0500)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/privs.c
lib/zebra.h
vtysh/vtysh.c

index ef4a0adf044a77a9069178a03f14ac4eab02b14b..717a2e48d6294c18a1cbb625c6999918ac5b90f7 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <zebra.h>
 
+#include <pwd.h>
 #include <grp.h>
 
 #ifdef HAVE_LCAPS
index f1a0d258133ce319a7f93487c54b8f54f05061bd..e38dba0debed9c10d028c687ff2e987b40abbfb4 100644 (file)
@@ -20,7 +20,6 @@
 #include <errno.h>
 #include <signal.h>
 #include <string.h>
-#include <pwd.h>
 #ifdef HAVE_STROPTS_H
 #include <stropts.h>
 #endif /* HAVE_STROPTS_H */
index e6ab22450f1df64876c45691aac6efb1fd84dfe7..2888403e625e05476e79d66dd019786ebfd40513 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <zebra.h>
 
+#include <pwd.h>
 #include <grp.h>
 
 #include <sys/un.h>