diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-20 18:58:52 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-20 18:58:52 +0200 |
commit | e6c1a2bde7609cc703a5fad34c3bc1d15d19bbdc (patch) | |
tree | f3a7af4b7a2539833db52afff062afc81e504e8a /udev/udevd.c | |
parent | eba87f55f6383cd61a11fce2ae37ac8100d6ded2 (diff) |
use openat(), unlinkat(), fstatat()
Diffstat (limited to 'udev/udevd.c')
-rw-r--r-- | udev/udevd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/udev/udevd.c b/udev/udevd.c index 1fe76f8829..b64f08b5c5 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -649,8 +649,7 @@ static void cleanup_queue_dir(struct udev *udev) break; if (dent->d_name[0] == '.') continue; - util_strscpyl(filename, sizeof(filename), dirname, "/", dent->d_name, NULL); - unlink(filename); + unlinkat(dirfd(dir), dent->d_name, 0); } closedir(dir); rmdir(dirname); |