subuser-security / subuser

Run programs on linux with selectively restricted permissions.
http://subuser.org
GNU Lesser General Public License v3.0
889 stars 65 forks source link

Crash when removing same subuser twice in same command #303

Closed timthelion closed 7 years ago

timthelion commented 7 years ago
./subuser subuser remove xterm xterm
Removing subuser xterm
 If you wish to remove the subusers home directory, issule the command $ rm -r /home/timothy/.subuser/homes/xterm
 If you wish to remove the subusers image, issue the command $ subuser remove-old-images
Removing subuser xterm
 If you wish to remove the subusers home directory, issule the command $ rm -r /home/timothy/.subuser/homes/xterm
 If you wish to remove the subusers image, issue the command $ subuser remove-old-images
Traceback (most recent call last):
  File "./subuser", line 52, in <module>
    command(sys.argv[2:])
  File "/home/timothy/current/subuser/logic/subuserlib/builtInCommands/subuser.py", line 108, in runCommand
    subuserlib.subuser.remove(user,subusers)
  File "/home/timothy/current/subuser/logic/subuserlib/subuser.py", line 65, in remove
    del user.getRegistry().getSubusers()[subuser.getName()]
KeyError: 'xterm'