projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9e77bc
)
udev: ignore ENOENT when chmod_and_chown() device node
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 12 Nov 2019 05:57:48 +0000
(14:57 +0900)
committer
Michael Biebl
<biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000
(08:17 +0000)
(cherry picked from commit
4b613ec212bfd06fd9d9487bd37b0791fa6dff9e
)
Gbp-Pq: Name udev-ignore-ENOENT-when-chmod_and_chown-device-node.patch
src/udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index efea16e5c5acd4dddd68accb33298626b3cf26e6..39d7af8b0824976f29185d114dd8aac9afbf25ec 100644
(file)
--- a/
src/udev/udev-rules.c
+++ b/
src/udev/udev-rules.c
@@
-2313,6
+2313,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);