diff options
Diffstat (limited to 'src/fs.c')
-rw-r--r-- | src/fs.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -294,9 +294,11 @@ int rsync(const char *_args, const char *_source, const char *_destination) { strcat(args_combined, _args); } + strchrdel(args_combined, "&;|"); + strchrdel(source, "&;|"); + strchrdel(destination, "&;|"); + snprintf(cmd, PATH_MAX, "rsync %s \"%s\" \"%s\" 2>&1", args_combined, source, destination); - // sanitize command - strchrdel(cmd, "&;|"); shell(&proc, SHELL_OUTPUT, cmd); if (!proc) { if (args) { |