chiark / gitweb /
lookup_user, lookup_group: report "unknown user" and "lookup failed"
[elogind.git] / udev_utils_file.c
index cd9c244f0f3d1b799f58063032ba2da959c6e3b5..6a046e822da596ab310f124c18e0e415096e4509 100644 (file)
 #include <sys/stat.h>
 #include <sys/mman.h>
 
-#include "udev_libc_wrapper.h"
 #include "udev.h"
-#include "logging.h"
-#include "udev_utils.h"
-#include "list.h"
 
 int create_path(const char *path)
 {
@@ -53,7 +49,7 @@ int create_path(const char *path)
        pos[0] = '\0';
 
        dbg("stat '%s'\n", p);
-       if (stat (p, &stats) == 0 && (stats.st_mode & S_IFMT) == S_IFDIR)
+       if (stat(p, &stats) == 0 && (stats.st_mode & S_IFMT) == S_IFDIR)
                return 0;
 
        if (create_path (p) != 0)