diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-27 14:21:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-27 14:21:16 +0000 |
commit | a7a14e74ff9624d425630ad00c1d4dbf9b49ebb8 (patch) | |
tree | ec772dbf7b7b0d3ab35a0f4df4c89d01f0c5082e /perl-install/standalone | |
parent | 0346f921ca0e6df17551d7f39feb23490d1705ea (diff) | |
download | drakx-a7a14e74ff9624d425630ad00c1d4dbf9b49ebb8.tar drakx-a7a14e74ff9624d425630ad00c1d4dbf9b49ebb8.tar.gz drakx-a7a14e74ff9624d425630ad00c1d4dbf9b49ebb8.tar.bz2 drakx-a7a14e74ff9624d425630ad00c1d4dbf9b49ebb8.tar.xz drakx-a7a14e74ff9624d425630ad00c1d4dbf9b49ebb8.zip |
(in_ifconfig) better check ifconfig is executable before running it
(-e is not enough)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/net_monitor | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index ee4a10e92..7e323fb19 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -426,7 +426,7 @@ sub update() { sub in_ifconfig { my ($intf) = @_; - -e '/sbin/ifconfig' or return 1; + -x '/sbin/ifconfig' or return 1; $intf eq '' and return 1; `/sbin/ifconfig` =~ /$intf/; } |