diff options
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r-- | src/fcopy/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c index cbb551125..753d9c0a0 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c | |||
@@ -218,7 +218,7 @@ static char *check(const char *src) { | |||
218 | // /run/systemd/resolve/resolv.conf; this file is owned by systemd-resolve user | 218 | // /run/systemd/resolve/resolv.conf; this file is owned by systemd-resolve user |
219 | // checking gid will fail for files with a larger group such as /usr/bin/mutt_dotlock | 219 | // checking gid will fail for files with a larger group such as /usr/bin/mutt_dotlock |
220 | uid_t user = getuid(); | 220 | uid_t user = getuid(); |
221 | if (user == 0 && strcmp(rsrc, "/run/systemd/resolve/resolv.conf") == 0) { | 221 | if (user == 0 && strncmp(rsrc, "/run/systemd/resolve/", 21) == 0) { |
222 | // check user systemd-resolve | 222 | // check user systemd-resolve |
223 | struct passwd *p = getpwnam("systemd-resolve"); | 223 | struct passwd *p = getpwnam("systemd-resolve"); |
224 | if (!p) | 224 | if (!p) |