summaryrefslogtreecommitdiffstats
path: root/disk-utils/partx.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 /disk-utils/partx.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 'disk-utils/partx.c')
-rw-r--r--disk-utils/partx.c3
1 files changed, 1 insertions, 2 deletions
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");