}
usermap = (char *)poptGetOptArg(pc);
usermap_via_chown = False;
+ preserve_uid = 1;
break;
case OPT_GROUPMAP:
}
groupmap = (char *)poptGetOptArg(pc);
groupmap_via_chown = False;
+ preserve_gid = 1;
break;
case OPT_CHOWN: {
if (asprintf(&usermap, "*:%.*s", len, chown) < 0)
out_of_memory("parse_arguments");
usermap_via_chown = True;
+ preserve_uid = 1;
}
if (arg && *arg) {
if (groupmap) {
if (asprintf(&groupmap, "*:%s", arg) < 0)
out_of_memory("parse_arguments");
groupmap_via_chown = True;
+ preserve_gid = 1;
}
break;
}
option to have any effect, the `-g` (`--group`) option must be used (or
implied), and the receiver will need to have permissions to set that group.
+ The `--usermap` option implies the `--owner` option while the `--groupmap`
+ option implies the `--group` option.
+
If your shell complains about the wildcards, use `--protect-args` (`-s`).
0. `--chown=USER:GROUP`
USER is empty, a leading colon must be supplied.
If you specify "`--chown=foo:bar`", this is exactly the same as specifying
- "`--usermap=*:foo --groupmap=*:bar`", only easier. If your shell complains
- about the wildcards, use `--protect-args` (`-s`).
+ "`--usermap=*:foo --groupmap=*:bar`", only easier (with the same implied
+ `--owner` and/or `--group` option).
+
+ If your shell complains about the wildcards, use `--protect-args` (`-s`).
0. `--timeout=SECONDS`