[Gtkradiant] [Bug 785] ~/.radiant has wrong ownership and permissions
Sat, 06 Sep 2003 00:53:27 -0500
------- Additional Comments From email@example.com 2003-09-06 00:53 -------
I think this is what happens: when compiling or installing radiant, one is usually running as root -
via su or sudo; under OS X one is seldom logged in as root. The BSD su does not change $HOME. If
the ~/.radiant and ~/.q3a directories do not already exist, they are created in the original user's
home directory with the userid of the radiant process, which is root in this situation.
The id(1) command with the -p option will show both the current uid and the original login uid. If
Radiant is running as root, it should perhaps use the same technique as id -p to find the login uid
and setuid to that when it starts up, before creating any files or directories.