summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vtysh/vtysh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 24ac9675e..17b95707d 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -2488,6 +2488,7 @@ vtysh_write_config_integrated(void)
err++;
}
+#ifdef FRR_USER
pwentry = getpwnam (FRR_USER);
if (pwentry)
uid = pwentry->pw_uid;
@@ -2496,7 +2497,8 @@ vtysh_write_config_integrated(void)
printf ("%% Warning: could not look up user \"%s\"\n", FRR_USER);
err++;
}
-
+#endif
+#ifdef FRR_GROUP
grentry = getgrnam (FRR_GROUP);
if (grentry)
gid = grentry->gr_gid;
@@ -2505,6 +2507,7 @@ vtysh_write_config_integrated(void)
printf ("%% Warning: could not look up group \"%s\"\n", FRR_GROUP);
err++;
}
+#endif
if (!fstat (fd, &st))
{