mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
S_IWUSR rather than S_IWRITE for scp
This commit is contained in:
parent
e2d36d493f
commit
1f308fb2b4
2
scp.c
2
scp.c
@ -992,7 +992,7 @@ sink(int argc, char **argv)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
omode = mode;
|
omode = mode;
|
||||||
mode |= S_IWRITE;
|
mode |= S_IWUSR;
|
||||||
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
|
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
|
||||||
bad: run_err("%s: %s", np, strerror(errno));
|
bad: run_err("%s: %s", np, strerror(errno));
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user