aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xiurt_root_command4
1 files changed, 4 insertions, 0 deletions
diff --git a/iurt_root_command b/iurt_root_command
index de21741..b852be1 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -329,6 +329,10 @@ sub check_tar_authorized {
sub tar {
my ($_run, $_opt, $file, $dir) = @_;
+ if (!$file || !$dir) {
+ plog('FAIL', "tar: missing arguments");
+ return;
+ }
check_tar_authorized($file, $dir) or return;
return !system('tar', 'caf', $file, '-C', $dir, '.');
}