summaryrefslogtreecommitdiffstats
path: root/lib/loopdev.c
diff options
context:
space:
mode:
authorRuediger Meier2016-02-29 12:38:58 +0100
committerKarel Zak2016-03-07 15:33:56 +0100
commit2208b3ccb298be2675cf005b761b1668f8cd576f (patch)
tree2321d7e68e87a87be24220824a47453f67a3881a /lib/loopdev.c
parenttaskset: fix description of `-c` option in the man page (diff)
downloadkernel-qcow2-util-linux-2208b3ccb298be2675cf005b761b1668f8cd576f.tar.gz
kernel-qcow2-util-linux-2208b3ccb298be2675cf005b761b1668f8cd576f.tar.xz
kernel-qcow2-util-linux-2208b3ccb298be2675cf005b761b1668f8cd576f.zip
lib: remove openat fallback functions (include/at.h)
I have validated that we are still compatible at least back to - openSUSE 11.4 - SLE 11 - RHEL/CentOS 6 - OSX 10.10.x, (Xcode 6.3) - FreeBSD 10.2 Confirmed incompatibility: - OSX 10.9.x, (Xcode 6.2) Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'lib/loopdev.c')
-rw-r--r--lib/loopdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/loopdev.c b/lib/loopdev.c
index 5f3c3a246..b2c8b987b 100644
--- a/lib/loopdev.c
+++ b/lib/loopdev.c
@@ -40,7 +40,6 @@
#include "pathnames.h"
#include "loopdev.h"
#include "canonicalize.h"
-#include "at.h"
#include "blkdev.h"
#include "debug.h"
@@ -546,7 +545,7 @@ static int loopcxt_next_from_sysfs(struct loopdev_cxt *lc)
continue;
snprintf(name, sizeof(name), "%s/loop/backing_file", d->d_name);
- if (fstat_at(fd, _PATH_SYS_BLOCK, name, &st, 0) != 0)
+ if (fstatat(fd, name, &st, 0) != 0)
continue;
if (loopiter_set_device(lc, d->d_name) == 0)