| From 557ca399f4b3a397f20bb147ec6dc4ab9732dd1e Mon Sep 17 00:00:00 2001 |
| From: Khem Raj <raj.khem@gmail.com> |
| Date: Fri, 31 Mar 2017 19:12:10 -0700 |
| Subject: [PATCH] Replace __S_IEXEC with S_IEXEC |
| |
| S_IEXEC is portable |
| |
| Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| |
| --- |
| daemon/lookup.c | 4 ++-- |
| modules/lookup_multi.c | 2 +- |
| 2 files changed, 3 insertions(+), 3 deletions(-) |
| |
| diff --git a/daemon/lookup.c b/daemon/lookup.c |
| index 201ccbb..d821db8 100644 |
| --- a/daemon/lookup.c |
| +++ b/daemon/lookup.c |
| @@ -366,7 +366,7 @@ static int read_file_source_instance(struct autofs_point *ap, struct map_source |
| if (!S_ISREG(st.st_mode)) |
| return NSS_STATUS_NOTFOUND; |
| |
| - if (st.st_mode & __S_IEXEC) |
| + if (st.st_mode & S_IEXEC) |
| type = src_prog; |
| else |
| type = src_file; |
| @@ -856,7 +856,7 @@ static int lookup_name_file_source_instance(struct autofs_point *ap, struct map_ |
| if (!S_ISREG(st.st_mode)) |
| return NSS_STATUS_NOTFOUND; |
| |
| - if (st.st_mode & __S_IEXEC) |
| + if (st.st_mode & S_IEXEC) |
| type = src_prog; |
| else |
| type = src_file; |
| diff --git a/modules/lookup_multi.c b/modules/lookup_multi.c |
| index fadd2ea..3ecda6d 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; |