]> err.no Git - systemd/commitdiff
udevd: log warning if /run is not writable
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 13 Apr 2011 13:01:00 +0000 (15:01 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 13 Apr 2011 13:01:00 +0000 (15:01 +0200)
udev/udevd.c

index 8610c6c062123da98972667e66ca578afe17cc3a..051e8fe527b21e0c4f92983c9156070941489744 100644 (file)
@@ -1153,6 +1153,8 @@ int main(int argc, char *argv[])
                        if (udev_set_run_path(udev, filename) == NULL)
                                goto exit;
                        mkdir(udev_get_run_path(udev), 0755);
+                       err(udev, "error: runtime directory '%s' not writable, for now falling back to '%s'",
+                           udev_get_run_config_path(udev), udev_get_run_path(udev));
                }
        }
        /* relabel runtime dir only if it resides below /dev */