summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2013-06-01 20:59:26 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2013-06-01 20:59:26 +0000
commit8373c2c7a0cb7419707271594a1ad44c288da694 (patch)
treee151259d51e7282ec6446e0500cdfebdacab8ca7 /bin
parent28527f4b4965f643e8d4d3efb7df424a58db49f1 (diff)
Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. Patch
from Nathan Osman via bz#2085. ok deraadt.
Diffstat (limited to 'bin')
-rw-r--r--bin/rcp/rcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index 9cbf696e59b..131f8bb6a47 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcp.c,v 1.50 2012/12/04 02:24:46 deraadt Exp $ */
+/* $OpenBSD: rcp.c,v 1.51 2013/06/01 20:59:25 dtucker Exp $ */
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
/*
@@ -691,7 +691,7 @@ sink(int argc, char *argv[])
continue;
}
omode = mode;
- mode |= S_IWRITE;
+ mode |= S_IWUSR;
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
bad: run_err("%s: %s", np, strerror(errno));
continue;