From 473c5fb86c43eed41fc5ce8532699b6421f469e0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 7 Oct 2014 13:41:40 +0200 Subject: libmount: fix mnt_is_readonly() #ifdef This issue affects util-linux portability to GNU/HURD Reported-by: Pino Toscano (from Red Hat) Signed-off-by: Karel Zak --- configure.ac | 2 +- libmount/src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 974ac0bc5..bdae89faf 100644 --- a/configure.ac +++ b/configure.ac @@ -304,7 +304,7 @@ AC_CHECK_FUNCS([ \ err \ errx \ fsync \ - futimens \ + utimensat \ getdomainname \ getdtablesize \ getexecname \ diff --git a/libmount/src/utils.c b/libmount/src/utils.c index d97390e94..dc265c282 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -193,7 +193,7 @@ int mnt_is_readonly(const char *path) if (errno != EACCES) return 0; -#ifdef HAVE_FUTIMENS +#ifdef HAVE_UTIMENSAT /* * access(2) returns EACCES on read-only FS: * -- cgit v1.2.3-55-g7522