diff options
author | ajs <ajs> | 2004-11-20 03:06:59 +0100 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 03:06:59 +0100 |
commit | 6099b3b56956322567323c11fd698b2328c6826b (patch) | |
tree | fa537bd0eaa9f7d824f39445eabc928db59050ca /zebra/ipforward_proc.c | |
parent | Fix previous change to use new function safe_strerror instead of strerror. (diff) | |
download | frr-6099b3b56956322567323c11fd698b2328c6826b.tar.xz frr-6099b3b56956322567323c11fd698b2328c6826b.zip |
2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* global: Replace strerror with safe_strerror. And vtysh/vtysh.c
needs to include "log.h" to pick up the declaration.
Diffstat (limited to 'zebra/ipforward_proc.c')
-rw-r--r-- | zebra/ipforward_proc.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/zebra/ipforward_proc.c b/zebra/ipforward_proc.c index 4c30cf678..443cb1c6e 100644 --- a/zebra/ipforward_proc.c +++ b/zebra/ipforward_proc.c @@ -77,13 +77,13 @@ ipforward_on () FILE *fp; if ( zserv_privs.change(ZPRIVS_RAISE) ) - zlog_err ("Can't raise privileges, %s", strerror (errno) ); + zlog_err ("Can't raise privileges, %s", safe_strerror (errno) ); fp = fopen (proc_ipv4_forwarding, "w"); if (fp == NULL) { if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return -1; } @@ -92,7 +92,7 @@ ipforward_on () fclose (fp); if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return ipforward (); } @@ -103,13 +103,13 @@ ipforward_off () FILE *fp; if ( zserv_privs.change(ZPRIVS_RAISE) ) - zlog_err ("Can't raise privileges, %s", strerror (errno)); + zlog_err ("Can't raise privileges, %s", safe_strerror (errno)); fp = fopen (proc_ipv4_forwarding, "w"); if (fp == NULL) { if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return -1; } @@ -118,7 +118,7 @@ ipforward_off () fclose (fp); if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return ipforward (); } @@ -150,13 +150,13 @@ ipforward_ipv6_on () FILE *fp; if ( zserv_privs.change(ZPRIVS_RAISE) ) - zlog_err ("Can't raise privileges, %s", strerror (errno)); + zlog_err ("Can't raise privileges, %s", safe_strerror (errno)); fp = fopen (proc_ipv6_forwarding, "w"); if (fp == NULL) { if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return -1; } @@ -165,7 +165,7 @@ ipforward_ipv6_on () fclose (fp); if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return ipforward_ipv6 (); } @@ -176,13 +176,13 @@ ipforward_ipv6_off () FILE *fp; if ( zserv_privs.change(ZPRIVS_RAISE) ) - zlog_err ("Can't raise privileges, %s", strerror (errno)); + zlog_err ("Can't raise privileges, %s", safe_strerror (errno)); fp = fopen (proc_ipv6_forwarding, "w"); if (fp == NULL) { if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return -1; } @@ -191,7 +191,7 @@ ipforward_ipv6_off () fclose (fp); if ( zserv_privs.change(ZPRIVS_LOWER) ) - zlog_err ("Can't lower privileges, %s", strerror (errno)); + zlog_err ("Can't lower privileges, %s", safe_strerror (errno)); return ipforward_ipv6 (); } |