chiark / gitweb /
fix util_lookup_group to handle large groups
[elogind.git] / libudev / libudev.c
index d197ba7b1930ab9cac59e928ab82a56bc6537a28..695443cf3bd29ecddc6cf73456e4e0dd626b57f8 100644 (file)
 #include "libudev.h"
 #include "libudev-private.h"
 
+/**
+ * SECTION:libudev
+ * @short_description: libudev context
+ *
+ * The context contains the default values read from the udev config file,
+ * and is passed to all library operations.
+ */
+
 /**
  * udev:
  *
- * Library context, passed to all operations.
+ * Opaque object representing the library context.
  */
 struct udev {
        int refcount;
@@ -115,7 +123,7 @@ struct udev *udev_new(void)
        udev->log_priority = LOG_ERR;
        udev_list_init(&udev->properties_list);
        udev->run = 1;
-       udev->dev_path = strdup(UDEV_PREFIX "/dev");
+       udev->dev_path = strdup("/dev");
        udev->sys_path = strdup("/sys");
        config_file = strdup(SYSCONFDIR "/udev/udev.conf");
        if (udev->dev_path == NULL ||