diff options
author | Karel Zak | 2014-10-07 13:41:40 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-07 13:41:40 +0200 |
commit | 473c5fb86c43eed41fc5ce8532699b6421f469e0 (patch) | |
tree | 51b4590eef712bdaab263b305083cee1a9726fa0 | |
parent | libblkid: zeroize errno on blkid_probe_get_buffer() success (diff) | |
download | kernel-qcow2-util-linux-473c5fb86c43eed41fc5ce8532699b6421f469e0.tar.gz kernel-qcow2-util-linux-473c5fb86c43eed41fc5ce8532699b6421f469e0.tar.xz kernel-qcow2-util-linux-473c5fb86c43eed41fc5ce8532699b6421f469e0.zip |
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 <kzak@redhat.com>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | 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: * |