diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-23 02:48:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-23 02:48:58 +0000 |
commit | a92488f73e82114d0d47a59cb51cc0af16c3a57d (patch) | |
tree | 72c7ff25e628aed7fd6724e1670d674f1b40900f | |
parent | 227fa1e78b09dcd6b31c956e6bcf76ca3e00a4e2 (diff) |
give correct err string; adobriyan@gmail.com
-rw-r--r-- | bin/rcp/rcp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index f5fe5a1f027..417a1f2f31a 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcp.c,v 1.43 2006/03/12 01:51:15 djm Exp $ */ +/* $OpenBSD: rcp.c,v 1.44 2006/03/23 02:48:57 deraadt Exp $ */ /* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94"; #else -static const char rcsid[] = "$OpenBSD: rcp.c,v 1.43 2006/03/12 01:51:15 djm Exp $"; +static const char rcsid[] = "$OpenBSD: rcp.c,v 1.44 2006/03/23 02:48:57 deraadt Exp $"; #endif #endif /* not lint */ @@ -242,7 +242,7 @@ toremote(char *targ, int argc, char *argv[]) alist.list = NULL; if ((user = strdup(pwd->pw_name)) == NULL) - err(1, "malloc"); + err(1, "strdup"); *targ++ = 0; if (*targ == 0) @@ -250,7 +250,7 @@ toremote(char *targ, int argc, char *argv[]) arg = strdup(argv[argc - 1]); if (!arg) - err(1, "malloc"); + err(1, "strdup"); if ((thost = strchr(arg, '@'))) { /* user@host */ *thost++ = 0; @@ -339,7 +339,7 @@ tolocal(int argc, char *argv[]) alist.list = NULL; if ((user = strdup(pwd->pw_name)) == NULL) - err(1, "malloc"); + err(1, "strdup"); for (i = 0; i < argc - 1; i++) { if (!(src = colon(argv[i]))) { /* Local to local. */ |