summaryrefslogtreecommitdiffstats
path: root/gurpmi
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-27 12:26:23 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-27 12:26:23 +0000
commit7318c563a5cac279265da7c2e9ad82b55dd2e3ab (patch)
tree6a303dc0f9ea9e075707037f4d4f953cc4b2bc33 /gurpmi
parent9fedab685857ee206edf6728e557d937a657aa87 (diff)
downloadurpmi-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--gurpmi9
1 files changed, 5 insertions, 4 deletions
diff --git a/gurpmi b/gurpmi
index d521a153..b6205411 100644
--- a/gurpmi
+++ b/gurpmi
@@ -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";