diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-11-12 06:57:48 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-11-12 06:58:53 +0100 |
commit | 4b613ec212bfd06fd9d9487bd37b0791fa6dff9e (patch) | |
tree | a64a4db3aaa58d4abef2679df200ffea9deed02d /src/udev/udev-rules.c | |
parent | Merge pull request #13997 from khfeng/hwdb-dell-vostro5581-ish (diff) | |
download | systemd-4b613ec212bfd06fd9d9487bd37b0791fa6dff9e.tar.xz systemd-4b613ec212bfd06fd9d9487bd37b0791fa6dff9e.zip |
udev: ignore ENOENT when chmod_and_chown() device node
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r-- | src/udev/udev-rules.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index ab54067b3f..92eb136e69 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -2333,6 +2333,8 @@ static int apply_static_dev_perms(const char *devnode, uid_t uid, gid_t gid, mod gid = 0; r = chmod_and_chown(device_node, mode, uid, gid); + if (r == -ENOENT) + return 0; if (r < 0) return log_error_errno(errno, "Failed to chown '%s' %u %u: %m", device_node, uid, gid); |