mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
timesync: do not fail when started as privileged user
This commit is contained in:
parent
fc432c2314
commit
d1c2774b6d
@ -66,6 +66,7 @@ static int load_clock_timestamp(uid_t uid, gid_t gid) {
|
||||
if (r < 0)
|
||||
return log_error_errno(errno, "Failed to change file access mode: %m");
|
||||
r = fchown(fd, uid, gid);
|
||||
if (r < 0)
|
||||
return log_error_errno(errno, "Failed to change file owner: %m");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user