diff options
author | peter <peter@FreeBSD.org> | 1997-03-11 12:09:50 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-11 12:09:50 +0000 |
commit | 7f724bc019c31a8c4431544257687485e1f4e097 (patch) | |
tree | c659cdd45beb794cde9ff44ac6c90d00a51602f2 /sbin/dump/dumprmt.c | |
parent | 9d6aaa6325cf8be94ba275a08c832d48859ccf64 (diff) | |
download | FreeBSD-src-7f724bc019c31a8c4431544257687485e1f4e097.zip FreeBSD-src-7f724bc019c31a8c4431544257687485e1f4e097.tar.gz |
Merge Lite2 changes (rather bigish, the dump/restore folks should check)
Diffstat (limited to 'sbin/dump/dumprmt.c')
-rw-r--r-- | sbin/dump/dumprmt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dump/dumprmt.c b/sbin/dump/dumprmt.c index 08aa485..5959789 100644 --- a/sbin/dump/dumprmt.c +++ b/sbin/dump/dumprmt.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)dumprmt.c 8.1 (Berkeley) 6/5/93"; +static char sccsid[] = "@(#)dumprmt.c 8.3 (Berkeley) 4/28/95"; #endif /* not lint */ #include <sys/param.h> @@ -55,6 +55,7 @@ static char sccsid[] = "@(#)dumprmt.c 8.1 (Berkeley) 6/5/93"; #include <protocols/dumprestore.h> #include <ctype.h> +#include <err.h> #include <netdb.h> #include <pwd.h> #include <signal.h> @@ -157,7 +158,7 @@ rmtgetconn() exit(X_ABORT); } } - if ((cp = index(rmtpeer, '@')) != NULL) { + if ((cp = strchr(rmtpeer, '@')) != NULL) { tuser = rmtpeer; *cp = '\0'; if (!okname(tuser)) |