summaryrefslogtreecommitdiff
path: root/kvm
diff options
context:
space:
mode:
authorDor Laor <dor@qumranet.com>2007-03-11 10:30:18 +0000
committerDor Laor <dor@qumranet.com>2007-03-11 10:30:18 +0000
commit12388ddf17d797d0cb529510fcff6597e935878c (patch)
tree15a228e45805dbe70ef87f7d33925348a05c84a9 /kvm
parent93c583a31269521bce6ca70c6a38788b7a152981 (diff)
Use full path for binaries so sudo command will work even without the rigth environment variables
Diffstat (limited to 'kvm')
-rwxr-xr-xkvm2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm b/kvm
index 43394c17..a8bdb5d3 100755
--- a/kvm
+++ b/kvm
@@ -178,7 +178,7 @@ if options.debugger:
if not options.notap:
mac = options.mac
if not mac:
- for line in commands.getoutput('ip link show eth0').splitlines():
+ for line in commands.getoutput('/sbin/ip link show eth0').splitlines():
m = re.match(r'.*link/ether (..:..:..:..:..:..).*', line)
if m:
mac = m.group(1)