diff options
Diffstat (limited to 'src/configparser.cpp')
| -rw-r--r-- | src/configparser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index ddd07c728..d0fa48ef8 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -480,6 +480,7 @@ namespace { void CheckOwnership(const std::string& path) { +#ifndef _WIN32 struct stat pathinfo; if (stat(path.c_str(), &pathinfo)) return; // Will be handled when fopen fails. @@ -487,14 +488,15 @@ namespace if (getegid() != pathinfo.st_gid) { ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, "Possible configuration error: %s is owned by group %u but the server is running as group %u.", - path.c_str(), getegid(), pathinfo.st_gid); + path.c_str(), pathinfo.st_gid, getegid()); } if (geteuid() != pathinfo.st_uid) { ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, "Possible configuration error: %s is owned by user %u but the server is running as user %u.", - path.c_str(), geteuid(), pathinfo.st_uid); + path.c_str(), pathinfo.st_uid, geteuid()); } +#endif } } |
