summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-06-06 15:23:01 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-06-15 00:50:59 +0200
commitc29778a1003e1a5d9b428b46e6700b16c7ff2078 (patch)
treedf900f1e34b3024928ee2628273067d43e8daa13 /src/udev
parentstring-util: make sure strrepa() doesn't doubly evaluate expressions (diff)
downloadsystemd-c29778a1003e1a5d9b428b46e6700b16c7ff2078.tar.xz
systemd-c29778a1003e1a5d9b428b46e6700b16c7ff2078.zip
fs-util: add simple open_mkdir() wrapper
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-node.c2
-rw-r--r--src/udev/udev-watch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
index 633fb2a31d..253ffa7b7c 100644
--- a/src/udev/udev-node.c
+++ b/src/udev/udev-node.c
@@ -375,7 +375,7 @@ static int stack_directory_open(sd_device *dev, const char *slink, int *ret_dirf
if (r < 0)
return log_device_debug_errno(dev, r, "Failed to create stack directory '%s': %m", dirname);
- dirfd = open_mkdir_at(AT_FDCWD, dirname, O_CLOEXEC | O_DIRECTORY | O_NOFOLLOW | O_RDONLY, 0755);
+ dirfd = open_mkdir(dirname, O_CLOEXEC | O_DIRECTORY | O_NOFOLLOW | O_RDONLY, 0755);
if (dirfd < 0)
return log_device_debug_errno(dev, dirfd, "Failed to open stack directory '%s': %m", dirname);
diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c
index 258eb26a65..1e7b9c04ca 100644
--- a/src/udev/udev-watch.c
+++ b/src/udev/udev-watch.c
@@ -192,7 +192,7 @@ int udev_watch_begin(int inotify_fd, sd_device *dev) {
if (r < 0)
return log_device_debug_errno(dev, r, "Failed to get device ID: %m");
- r = dirfd = open_mkdir_at(AT_FDCWD, "/run/udev/watch", O_CLOEXEC | O_RDONLY, 0755);
+ r = dirfd = open_mkdir("/run/udev/watch", O_CLOEXEC | O_RDONLY, 0755);
if (r < 0)
return log_device_debug_errno(dev, r, "Failed to create and open '/run/udev/watch/': %m");