diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-27 12:26:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-27 12:26:23 +0000 |
commit | 7318c563a5cac279265da7c2e9ad82b55dd2e3ab (patch) | |
tree | 6a303dc0f9ea9e075707037f4d4f953cc4b2bc33 /gurpmi | |
parent | 9fedab685857ee206edf6728e557d937a657aa87 (diff) | |
download | urpmi-7318c563a5cac279265da7c2e9ad82b55dd2e3ab.tar urpmi-7318c563a5cac279265da7c2e9ad82b55dd2e3ab.tar.gz urpmi-7318c563a5cac279265da7c2e9ad82b55dd2e3ab.tar.bz2 urpmi-7318c563a5cac279265da7c2e9ad82b55dd2e3ab.tar.xz urpmi-7318c563a5cac279265da7c2e9ad82b55dd2e3ab.zip |
Security of gurpmi
Diffstat (limited to 'gurpmi')
-rw-r--r-- | gurpmi | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,9 +1,10 @@ -#!/usr/bin/perl +#!/usr/bin/perl -T $ENV{XAUTHORITY} or $ENV{XAUTHORITY} = "$ENV{HOME}/.Xauthority"; +$ENV{PATH} = '/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin'; $urpmi = 'urpmi'; -if (-f $urpmi) { $urpmi = './urpmi' } +if (-f $urpmi && $ENV{DEBUG_URPMI}) { $urpmi = './urpmi' } -exec $urpmi, "--X", @ARGV - or die "Can't exec urpmi: $!\n"; +exec $urpmi, "-X", @ARGV + or die "Can't exec $urpmi: $!\n"; |