X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/33e9d10d2a69a625be4746a166f3fe319b05b757..2b284ee33d97c4414c49c45720a3566a58a93a18:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 1b391ec9..f96d5e6d 100644 --- a/clientserver.c +++ b/clientserver.c @@ -266,7 +266,7 @@ static int rsync_module(int f_in, int f_out, int i) module_id = i; - am_root = (getuid() == 0); + am_root = (MY_UID() == 0); if (am_root) { p = lp_uid(i); @@ -383,7 +383,7 @@ static int rsync_module(int f_in, int f_out, int i) return -1; } - am_root = (getuid() == 0); + am_root = (MY_UID() == 0); } io_printf(f_out, "@RSYNCD: OK\n"); @@ -423,19 +423,6 @@ static int rsync_module(int f_in, int f_out, int i) } } - if (sanitize_paths) { - /* - * Note that this is applied to all parameters, whether or not - * they are filenames, but no other legal parameters contain - * the forms that need to be sanitized so it doesn't hurt; - * it is not known at this point which parameters are files - * and which aren't. - */ - for (i = 1; i < argc; i++) { - sanitize_path(argv[i], NULL); - } - } - argp = argv; ret = parse_arguments(&argc, (const char ***) &argp, 0);