chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lookup_user, lookup_group: report "unknown user" and "lookup failed"
[elogind.git]
/
udev_utils_file.c
diff --git
a/udev_utils_file.c
b/udev_utils_file.c
index cd9c244f0f3d1b799f58063032ba2da959c6e3b5..6a046e822da596ab310f124c18e0e415096e4509 100644
(file)
--- a/
udev_utils_file.c
+++ b/
udev_utils_file.c
@@
-30,11
+30,7
@@
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/mman.h>
-#include "udev_libc_wrapper.h"
#include "udev.h"
#include "udev.h"
-#include "logging.h"
-#include "udev_utils.h"
-#include "list.h"
int create_path(const char *path)
{
int create_path(const char *path)
{
@@
-53,7
+49,7
@@
int create_path(const char *path)
pos[0] = '\0';
dbg("stat '%s'\n", p);
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)
return 0;
if (create_path (p) != 0)