1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-30 11:18:12 +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:
Greg Alexander 2014-12-14 08:41:22 -05:00
parent 5b4f2d405f
commit 7cb3cbc624

View File

@ -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;