aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-01 22:49:17 +0000
committerOlivier Blin <blino@mageia.org>2010-11-01 22:49:17 +0000
commitf454167eb2274c088f28b1d198ad149b9f84ea98 (patch)
tree431a290cd099a4dfa1b369e7eab4bca9b2e30126 /iurt_root_command
parent94c683bbaac00cdec9aaf1b781a5606daec243dd (diff)
downloadiurt-f454167eb2274c088f28b1d198ad149b9f84ea98.tar
iurt-f454167eb2274c088f28b1d198ad149b9f84ea98.tar.gz
iurt-f454167eb2274c088f28b1d198ad149b9f84ea98.tar.bz2
iurt-f454167eb2274c088f28b1d198ad149b9f84ea98.tar.xz
iurt-f454167eb2274c088f28b1d198ad149b9f84ea98.zip
check dir authorization for umount
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command1
1 files changed, 1 insertions, 0 deletions
diff --git a/iurt_root_command b/iurt_root_command
index ce62f5c..6f07e7d 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -354,5 +354,6 @@ sub untar {
sub umount {
my ($_run, $dir) = @_;
+ check_path_authorized($dir) or return;
return !system("umount", $dir);
}