summaryrefslogtreecommitdiff
path: root/bin/rcp
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-06-13 09:03:19 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-06-13 09:03:19 +0000
commit0cca4c1063e25b5d8aa517d08f8a00f2cf21494c (patch)
treedc29463b7878e511bec9f54fc17b838068d4fade /bin/rcp
parent52d9206619e04e5dca7ada0618e60fea74dd0467 (diff)
exit(errs) -> exit(errs!=0); sync with scp.c, ok deraadt@
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/rcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index b776f8df6a8..e96c3df2f45 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcp.c,v 1.21 2001/06/13 08:52:42 markus Exp $ */
+/* $OpenBSD: rcp.c,v 1.22 2001/06/13 09:03:18 markus Exp $ */
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
/*
@@ -192,14 +192,14 @@ main(argc, argv)
(void)seteuid(userid);
(void)setuid(userid);
source(argc, argv);
- exit(errs);
+ exit(errs != 0);
}
if (tflag) { /* Receive data. */
(void)seteuid(userid);
(void)setuid(userid);
sink(argc, argv);
- exit(errs);
+ exit(errs != 0);
}
if (argc < 2)
@@ -229,7 +229,7 @@ main(argc, argv)
if (targetshouldbedirectory)
verifydir(argv[argc - 1]);
}
- exit(errs);
+ exit(errs != 0);
}
void