aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-24 22:02:22 +0000
committerIan Kent <raven@themaw.net>2022-05-06 14:21:26 +0800
commitce5f56d5ff91cce521cd50c3ce884fa30a2f3523 (patch)
tree308cce80cf1f1bd9a03107ca483ba0efd73937a6
parent8ca45f75550d9cf3bb283adb76518d3bb021225c (diff)
downloadautofs-ce5f56d5ff91cce521cd50c3ce884fa30a2f3523.tar.gz
autofs-5.1.8 - avoid internal stat.h definitions
Tested-by: Yixun Lan <dlan@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--CHANGELOG1
-rw-r--r--daemon/lookup.c6
-rw-r--r--modules/lookup_multi.c4
3 files changed, 6 insertions, 5 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 0627db48..98c8da8d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -20,6 +20,7 @@
- fix bashism in configure.
- musl: fix missing include in hash.h.
- musl: define fallback dummy NSS config path
+- musl: avoid internal stat.h definitions.
19/10/2021 autofs-5.1.8
- add xdr_exports().
diff --git a/daemon/lookup.c b/daemon/lookup.c
index 0b281f83..4a286d6b 100644
--- a/daemon/lookup.c
+++ b/daemon/lookup.c
@@ -397,7 +397,7 @@ static int read_file_source_instance(struct autofs_point *ap, struct map_source
return NSS_STATUS_NOTFOUND;
}
- if (st.st_mode & __S_IEXEC)
+ if (st.st_mode & S_IEXEC)
type = src_prog;
else
type = src_file;
@@ -930,7 +930,7 @@ static int lookup_name_file_source_instance(struct autofs_point *ap, struct map_
return NSS_STATUS_NOTFOUND;
}
- if (st.st_mode & __S_IEXEC)
+ if (st.st_mode & S_IEXEC)
type = src_prog;
else
type = src_file;
@@ -1077,7 +1077,7 @@ static struct map_source *lookup_get_map_source(struct master_mapent *entry)
if (!S_ISREG(st.st_mode))
return NULL;
- if (st.st_mode & __S_IEXEC)
+ if (st.st_mode & S_IEXEC)
type = "program";
else
type = "file";
diff --git a/modules/lookup_multi.c b/modules/lookup_multi.c
index fadd2ea6..cf109de9 100644
--- a/modules/lookup_multi.c
+++ b/modules/lookup_multi.c
@@ -247,7 +247,7 @@ static struct lookup_mod *nss_open_lookup(const char *format, int argc, const ch
continue;
}
- if (st.st_mode & __S_IEXEC)
+ if (st.st_mode & S_IEXEC)
type = src_prog;
else
type = src_file;
@@ -452,7 +452,7 @@ int lookup_reinit(const char *my_mapfmt,
continue;
}
- if (st.st_mode & __S_IEXEC)
+ if (st.st_mode & S_IEXEC)
type = src_prog;
else
type = src_file;