summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-13 05:12:19 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-13 05:12:19 +0000
commit2251687c07d6f102a481f4cd3427091d278b8705 (patch)
tree90e9321c55cd57b6c993dbb52089ed5eba190262 /urpmi.update
parent567cb34ec5da9e2298da89b6a4aff2ee9d35ceb6 (diff)
downloadurpmi-2251687c07d6f102a481f4cd3427091d278b8705.tar
urpmi-2251687c07d6f102a481f4cd3427091d278b8705.tar.gz
urpmi-2251687c07d6f102a481f4cd3427091d278b8705.tar.bz2
urpmi-2251687c07d6f102a481f4cd3427091d278b8705.tar.xz
urpmi-2251687c07d6f102a481f4cd3427091d278b8705.zip
More checks for root capabilities
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpmi.update b/urpmi.update
index 9e7d2515..329a8f3f 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -54,6 +54,9 @@ sub main {
urpm::args::parse_cmdline(urpm => $urpm);
+ if ($< != 0) {
+ $urpm->{fatal}(1, N("Only superuser is allowed to update media"));
+ }
$urpm->read_config;
exists $options{limit_rate} or $options{limit_rate} = $urpm->{options}{'limit-rate'};