rsync: log the command used

This commit is contained in:
Sitaram Chamarty 2010-02-01 11:35:35 +05:30
parent 18312de77a
commit 20c29c0145

View file

@ -230,6 +230,7 @@ sub ext_cmd_rsync
# that should "die" if there's a problem # that should "die" if there's a problem
wrap_chdir($RSYNC_BASE); wrap_chdir($RSYNC_BASE);
&log_it("$ENV{GL_TS}\t$ENV{SSH_ORIGINAL_COMMAND}\t$ENV{USER}\n");
exec $ENV{SHELL}, "-c", $ENV{SSH_ORIGINAL_COMMAND}; exec $ENV{SHELL}, "-c", $ENV{SSH_ORIGINAL_COMMAND};
} }