version 1.29, 2021/03/31 19:45:16 |
version 1.30, 2021/05/17 12:02:58 |
|
|
|
|
if (pledge("stdio unix rpath wpath cpath dpath inet fattr chown dns getpw unveil", |
if (pledge("stdio unix rpath wpath cpath dpath inet fattr chown dns getpw unveil", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(ERR_IPC, "pledge"); |
|
|
memset(&sess, 0, sizeof(struct sess)); |
memset(&sess, 0, sizeof(struct sess)); |
sess.opts = opts; |
sess.opts = opts; |
|
|
|
|
if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil", |
if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(ERR_IPC, "pledge"); |
|
|
memset(&sess, 0, sizeof(struct sess)); |
memset(&sess, 0, sizeof(struct sess)); |
sess.lver = RSYNC_PROTOCOL; |
sess.lver = RSYNC_PROTOCOL; |
|
|
assert(f->host != NULL); |
assert(f->host != NULL); |
assert(f->module != NULL); |
assert(f->module != NULL); |
|
|
if ((args = fargs_cmdline(&sess, f, &skip)) == NULL) { |
args = fargs_cmdline(&sess, f, &skip); |
ERRX1("fargs_cmdline"); |
|
exit(1); |
|
} |
|
|
|
/* Initiate with the rsyncd version and module request. */ |
/* Initiate with the rsyncd version and module request. */ |
|
|