diff options
Diffstat (limited to 'urpmi.update')
-rwxr-xr-x | urpmi.update | 3 |
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'}; |