diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-12 17:18:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-12 17:18:13 +0000 |
commit | 597b467c61498c0af85a1145f7897f14b4b38c5c (patch) | |
tree | 65e331a7633cedb4acf4fcaf30bf52f23feabefd /rpmdrake.pm | |
parent | db87f64ed765e41155a75416c876cb86dcf49f85 (diff) | |
download | rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar.gz rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar.bz2 rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar.xz rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.zip |
(run_as_user) drop it (obsolete, feature merged and improved into
drakxtools' run_program.pm)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r-- | rpmdrake.pm | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index 419d773a..7c78900a 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -80,7 +80,6 @@ our @EXPORT = qw( myexit readconf remove_wait_msg - run_as_user run_drakbug show_urpm_progress slow_func @@ -951,15 +950,6 @@ sub add_distrib_update_media { ); } -sub run_as_user { - if (my $user = $ENV{USERHELPER_UID} && getpwuid($ENV{USERHELPER_UID})) { - run_program::raw({ detach => 1 }, 'su', $user, '-c', join(' ', @_)); - } else { - run_program::raw({ detach => 1 }, @_); - } -} - - sub open_help { my ($mode) = @_; use run_program; |