Mercurial > dropbear
comparison scp.c @ 1163:0a1891e23b18
S_IWUSR rather than S_IWRITE for scp
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 04 Nov 2015 23:22:58 +0800 |
parents | 2dee3eef5344 |
children | 952624727411 2bb4c662d1c2 |
comparison
equal
deleted
inserted
replaced
1162:cdea5dbb1755 | 1163:0a1891e23b18 |
---|---|
990 if (vect[0]) | 990 if (vect[0]) |
991 xfree(vect[0]); | 991 xfree(vect[0]); |
992 continue; | 992 continue; |
993 } | 993 } |
994 omode = mode; | 994 omode = mode; |
995 mode |= S_IWRITE; | 995 mode |= S_IWUSR; |
996 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { | 996 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { |
997 bad: run_err("%s: %s", np, strerror(errno)); | 997 bad: run_err("%s: %s", np, strerror(errno)); |
998 continue; | 998 continue; |
999 } | 999 } |
1000 (void) atomicio(vwrite, remout, "", 1); | 1000 (void) atomicio(vwrite, remout, "", 1); |