From abcdd332ebe644391c5e05ce86650379ed359324 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 22 Oct 2017 14:38:17 -0400 Subject: systemd-resoved fix this time for both Ubuntu and Arch --- src/fcopy/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { // /run/systemd/resolve/resolv.conf; this file is owned by systemd-resolve user // checking gid will fail for files with a larger group such as /usr/bin/mutt_dotlock uid_t user = getuid(); - if (user == 0 && strcmp(rsrc, "/run/systemd/resolve/resolv.conf") == 0) { + if (user == 0 && strncmp(rsrc, "/run/systemd/resolve/", 21) == 0) { // check user systemd-resolve struct passwd *p = getpwnam("systemd-resolve"); if (!p) -- cgit v1.2.3-54-g00ecf