X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev%2Fudevd.c;h=f1a31e7afbb4c767e250cf6f0dd120bf33a28c58;hb=38f6aefc47799f6ba313621661ecef833a01e0d9;hp=1220deaaa6619472fc00493d45a93d60845b11da;hpb=869c9031608f0796bb4363d5de5db058fe96fedd;p=elogind.git diff --git a/udev/udevd.c b/udev/udevd.c index 1220deaaa..f1a31e7af 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -889,10 +889,11 @@ static void static_dev_create_from_modules(struct udev *udev) if (sscanf(devno, "%c%u:%u", &type, &maj, &min) != 3) continue; + /* set sticky bit, so we do not remove the node on module unload */ if (type == 'c') - mode = 0600 | S_IFCHR; + mode = 01600|S_IFCHR; else if (type == 'b') - mode = 0600 | S_IFBLK; + mode = 01600|S_IFBLK; else continue;