summaryrefslogtreecommitdiff
path: root/udev_utils_file.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-18 02:33:46 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-18 02:33:46 +0200
commit2362eea6019e07a2e79e67ebe626bfacf40ff40f (patch)
treed77ffb9f13ff5480cadb81197f2ddaad1313b58a /udev_utils_file.c
parent1aa0c52b4458be4cf6e55b2faf5c602761f5d3a3 (diff)
udevinfo, udevtest: simplify '/sys' stripping from devpath argument
Diffstat (limited to 'udev_utils_file.c')
-rw-r--r--udev_utils_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_utils_file.c b/udev_utils_file.c
index acaffdc918..6a046e822d 100644
--- a/udev_utils_file.c
+++ b/udev_utils_file.c
@@ -49,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)