diff options
author | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-17 13:28:55 +0000 |
---|---|---|
committer | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-17 13:28:55 +0000 |
commit | a09cc2371ac0a2534f514a35a5637614c11f6a37 (patch) | |
tree | 57c0e415f7d4c57ce0a60fec1f1223d0b6d1218a /src | |
parent | f8babb1e01dddcbe4ad055ec70ad972c9bc61c65 (diff) | |
download | hercules-a09cc2371ac0a2534f514a35a5637614c11f6a37.tar.gz hercules-a09cc2371ac0a2534f514a35a5637614c11f6a37.tar.bz2 hercules-a09cc2371ac0a2534f514a35a5637614c11f6a37.tar.xz hercules-a09cc2371ac0a2534f514a35a5637614c11f6a37.zip |
Fixed root usercheck not printing warning if file is suid-root.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15482 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/common/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/core.c b/src/common/core.c index 4150a9532..60ba5d6cd 100644 --- a/src/common/core.c +++ b/src/common/core.c @@ -210,11 +210,11 @@ static void display_title(void) ShowInfo("SVN Revision: '"CL_WHITE"%s"CL_RESET"'.\n", get_svn_revision()); } -// Warning if logged in as superuser (root) +// Warning if executed as superuser (root) void usercheck(void) { #ifndef _WIN32 - if ((getuid() == 0) && (getgid() == 0)) { + if (geteuid() == 0) { ShowWarning ("You are running rAthena with root privileges, it is not necessary.\n"); } #endif |