2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 13:58:22 +00:00

Move os.chdir(old_cwd) to before the aa-exec call it remove the side-effect of

the chdir to $HOME when using Xpra.

Acked-By: Jamie Strandboge <jamie@canonical.com>
Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
Jamie Strandboge
2014-02-06 15:15:48 -05:00
parent 0c5d6f4660
commit 4b01cb2544

View File

@@ -706,6 +706,7 @@ def run_xsandbox(command, opt):
x.start()
except Exception as e:
error(e)
os.chdir(old_cwd)
if not opt.read_path:
opt.read_path = []
@@ -721,6 +722,5 @@ def run_xsandbox(command, opt):
x.cleanup()
raise
x.cleanup()
os.chdir(old_cwd)
return rc, report