S_IWUSR rather than S_IWRITE for scp

This commit is contained in:
Matt Johnston 2015-11-04 23:22:58 +08:00
parent e2d36d493f
commit 1f308fb2b4

2
scp.c
View File

@ -992,7 +992,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;