]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix mnt_is_readonly() #ifdef
authorKarel Zak <kzak@redhat.com>
Tue, 7 Oct 2014 11:41:40 +0000 (13:41 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 7 Oct 2014 11:41:40 +0000 (13:41 +0200)
This issue affects util-linux portability to GNU/HURD

Reported-by: Pino Toscano (from Red Hat)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
libmount/src/utils.c

index 974ac0bc56541987cbfa7f4772bf465c04fd0ad4..bdae89fafaa5ba74f02891c455793fc70f058f1d 100644 (file)
@@ -304,7 +304,7 @@ AC_CHECK_FUNCS([ \
        err \
        errx \
        fsync \
-       futimens \
+       utimensat \
        getdomainname \
        getdtablesize \
        getexecname \
index d97390e941d232c763b378419285f123c419ed1d..dc265c282988a8a479fe337ac197f8e3af24fb1c 100644 (file)
@@ -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:
         *