version 1.26, 2020/11/24 16:54:44 |
version 1.27, 2021/03/22 11:49:15 |
|
|
* It queues requests for updates as soon as it receives them. |
* It queues requests for updates as soon as it receives them. |
* Returns zero on failure, non-zero on success. |
* Returns zero on failure, non-zero on success. |
* |
* |
* Pledges: stdio, rpath, unveil. |
* Pledges: stdio, getpw, rpath. |
*/ |
*/ |
int |
int |
rsync_sender(struct sess *sess, int fdin, |
rsync_sender(struct sess *sess, int fdin, |
|
|
size_t wbufpos = 0, wbufsz = 0, wbufmax = 0; |
size_t wbufpos = 0, wbufsz = 0, wbufmax = 0; |
ssize_t ssz; |
ssize_t ssz; |
|
|
if (pledge("stdio getpw rpath unveil", NULL) == -1) { |
if (pledge("stdio getpw rpath", NULL) == -1) { |
ERR("pledge"); |
ERR("pledge"); |
return 0; |
return 0; |
} |
} |