mirror of
http://galexander.org/git/simplesshd.git
synced 2024-12-29 09:28:07 +00:00
use S_IWUSR (0200) instead of S_IWRITE (S_IWRITE isn't documented, i
guess it is historical)
This commit is contained in:
parent
5b4f2d405f
commit
7cb3cbc624
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user