Version: (using KDE KDE 3.4.0) Installed from: Compiled From Sources Compiler: GCC 3.4.3 OS: Linux The KDE build system and some KDE sources currently assumes that the superuser is called "root". This is not a good idea, since the only assumption should be that the superuser has uid=0. This patch fixes that for the KDE-Base, by replacing "root" by the portable getpwuid() calls and by replacing "root" by "0" on shell scripts.
Created attachment 10327 [details] Gets the superuser's name in a portable way This patch fixes that for the KDE-Base, by replacing "root" by the portable getpwuid() calls and by replacing "root" by "0" on shell scripts.
Some parts of KDE actually use $ADMIN_ACCOUNT when defined instead of root.
I don't like the patch as it copies code around. Add a static function to kuser.h that returns the correct name and take in account what Waldo said: if (user.isEmpty()) user = ::getenv("ADMIN_ACCOUNT"); if (user.isEmpty()) user = "root";
I can see that some places still use hard-coded "root". Lucas, is it still relevant for you? Can you update the patch?
Not relevant anymore.