diff options
author | Karel Zak <kzak@redhat.com> | 2014-10-07 13:41:40 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2014-10-24 11:10:06 +0200 |
commit | b7fea6e55614eee078c3bf382b1a30f72bff679b (patch) | |
tree | a2a1583d970d86aa949a45cb0aa0c9b6326b321c | |
parent | 98b539c25caede8534ffaf06e67a694eeb3bc6cb (diff) | |
download | util-linux-b7fea6e55614eee078c3bf382b1a30f72bff679b.tar.gz |
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 90d6edc80..9d2325657 100644 --- a/configure.ac +++ b/configure.ac @@ -303,7 +303,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: * |