--- embedaddon/rsync/t_unsafe.c 2012/02/17 15:09:30 1.1 +++ embedaddon/rsync/t_unsafe.c 2021/03/17 00:32:36 1.1.1.4 @@ -2,7 +2,7 @@ * Test harness for unsafe_symlink(). Not linked into rsync itself. * * Copyright (C) 2002 Martin Pool - * Copyright (C) 2003-2009 Wayne Davison + * Copyright (C) 2003-2020 Wayne Davison * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,11 +25,9 @@ int dry_run = 0; int am_root = 0; +int am_sender = 1; int read_only = 0; int list_only = 0; -int verbose = 0; -int preserve_perms = 0; -int preserve_executability = 0; int main(int argc, char **argv) @@ -39,8 +37,7 @@ main(int argc, char **argv) return 1; } - printf("%s\n", - unsafe_symlink(argv[1], argv[2]) ? "unsafe" : "safe"); + printf("%s\n", unsafe_symlink(argv[1], argv[2]) ? "unsafe" : "safe"); return 0; }