chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udev: static nodes - fix default permissions if no rules is given
[elogind.git]
/
src
/
udev
/
udevd.c
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index a5478a754ed8ab270bf1e0a4c9f533a95ae4b834..393e2a920c889f491b6f31ece0f10ddb29b46f7e 100644
(file)
--- a/
src/udev/udevd.c
+++ b/
src/udev/udevd.c
@@
-845,10
+845,11
@@
static void static_dev_create_from_modules(struct udev *udev)
if (sscanf(devno, "%c%u:%u", &type, &maj, &min) != 3)
continue;
+ mode = 0600;
if (type == 'c')
- mode = S_IFCHR;
+ mode
|
= S_IFCHR;
else if (type == 'b')
- mode = S_IFBLK;
+ mode
|
= S_IFBLK;
else
continue;