diff options
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r-- | udev/udev-event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c index 823768a3e2..391fce81c3 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -1030,6 +1030,10 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules, } } + /* set sticky bit, so we do not remove the node on module unload */ + if (event->static_node) + event->mode |= 01000; + err = udev_node_add(dev, event->mode, event->uid, event->gid); } |