commit | 7d8f5ce9b8d3e7d0fbd27c39a6f41e578a675ce6 | [log] [tgz] |
---|---|---|
author | Laurent Bigonville <bigon@bigon.be> | Sun Dec 13 23:40:40 2015 +0100 |
committer | Steve Lawrence <slawrence@tresys.com> | Thu Dec 17 08:56:01 2015 -0500 |
tree | ea26fdde4028a3a2dc8bf7c77293f6c77e781c73 | |
parent | f2a8ae91725c89bac108f35e3640a222a7e9be2d [diff] |
policycoreutils/chcat: Add a fallback in case os.getlogin() returns nothing Some teminal emulators (like the latest version of gnome-terminal) are not setting entries in the utmp file, this leads getlogin() to return an empty string. Fallback to the name of the user running the chcat process.