diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-08-14 09:16:15 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-08-14 09:20:53 +0200 |
commit | 2f66635635c12ee0246a5c4f771772ed2b71bec6 (patch) | |
tree | 8fdaaf3a21ce5f39638396222bbf4dedab7ba4c3 /src/basic/fs-util.c | |
parent | c59be53b8741357a7a499785bc67204a51ddde77 (diff) |
Prep v235: Apply upstream fixes (3/10) [src/basic]
Diffstat (limited to 'src/basic/fs-util.c')
-rw-r--r-- | src/basic/fs-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c index 33624354f..f7e9f329d 100644 --- a/src/basic/fs-util.c +++ b/src/basic/fs-util.c @@ -312,7 +312,7 @@ int fd_warn_permissions(const char *path, int fd) { if (st.st_mode & 0002) log_warning("Configuration file %s is marked world-writable. Please remove world writability permission bits. Proceeding anyway.", path); - if (getpid() == 1 && (st.st_mode & 0044) != 0044) + if (getpid_cached() == 1 && (st.st_mode & 0044) != 0044) log_warning("Configuration file %s is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.", path); return 0; |