diff options
author | netblue30 <netblue30@yahoo.com> | 2017-10-22 14:38:17 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-10-22 14:38:17 -0400 |
commit | abcdd332ebe644391c5e05ce86650379ed359324 (patch) | |
tree | 0d9b56312fa6a43652bdb4e9711c815d64de9fa2 /src | |
parent | typos (diff) | |
download | firejail-abcdd332ebe644391c5e05ce86650379ed359324.tar.gz firejail-abcdd332ebe644391c5e05ce86650379ed359324.tar.zst firejail-abcdd332ebe644391c5e05ce86650379ed359324.zip |
systemd-resoved fix this time for both Ubuntu and Arch
Diffstat (limited to 'src')
-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) |