Merge "fix for nested rootwrap checks with 'ip netns exec'"

This commit is contained in:
Jenkins 2012-09-17 18:24:53 +00:00 committed by Gerrit Code Review
commit 39f87f6a12

View File

@ -193,4 +193,7 @@ class IpNetnsExecFilter(ExecCommandFilter):
return False
def exec_args(self, userargs):
return userargs[4:]
args = userargs[4:]
if args:
args[0] = os.path.basename(args[0])
return args