From 2208b3ccb298be2675cf005b761b1668f8cd576f Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Mon, 29 Feb 2016 12:38:58 +0100 Subject: 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 --- disk-utils/partx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'disk-utils/partx.c') diff --git a/disk-utils/partx.c b/disk-utils/partx.c index f01cf22c5..50bd6a4f8 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -32,7 +32,6 @@ #include "partx.h" #include "sysfs.h" #include "loopdev.h" -#include "at.h" #include "closestream.h" #include "optutils.h" @@ -249,7 +248,7 @@ static int get_max_partno(const char *disk, dev_t devno) continue; snprintf(path, sizeof(path), "%s/partition", d->d_name); - fd = open_at(dirfd(dir), dirname, path, O_RDONLY); + fd = openat(dirfd(dir), path, O_RDONLY); if (fd) { int x = 0; FILE *f = fdopen(fd, "r"); -- cgit v1.2.3-55-g7522