diff options
author | Tom Gundersen <teg@jklm.no> | 2014-09-15 14:20:32 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-09-16 12:12:56 +0200 |
commit | 37d522746b67fda0d52111364d81358ce560bcf7 (patch) | |
tree | b9666d700055dfb449527b622555eda1debd0484 /src/udev/udev-node.c | |
parent | 23bf8dd7d5ce1e2a52f28d5d242109ddb668b3fb (diff) |
libudev: util - drop util_delete_path()
Use rmdir_parents() from src/shared instead.
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r-- | src/udev/udev-node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index d42af9a6d2..c164603795 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -179,7 +179,6 @@ static const char *link_find_prioritized(struct udev_device *dev, bool add, cons /* manage "stack of names" with possibly specified device priorities */ static void link_update(struct udev_device *dev, const char *slink, bool add) { - struct udev *udev = udev_device_get_udev(dev); char name_enc[UTIL_PATH_SIZE]; char filename[UTIL_PATH_SIZE * 2]; char dirname[UTIL_PATH_SIZE]; @@ -197,7 +196,7 @@ static void link_update(struct udev_device *dev, const char *slink, bool add) { if (target == NULL) { log_debug("no reference left, remove '%s'", slink); if (unlink(slink) == 0) - util_delete_path(udev, slink); + rmdir_parents(slink, "/"); } else { log_debug("creating link '%s' to '%s'", slink, target); node_symlink(dev, target, slink); |