From ba1652925190702bec29e2c5129ee857576853d6 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 15 Sep 2009 14:43:14 -0600 Subject: [PATCH] stat: add as dependency to other modules Modules that use stat but are not in this list don't trip any of the bugs that the stat module fixes. * modules/chown (Depends-on): Add stat. * modules/euidaccess (Depends-on): Likewise. * modules/fchdir (Depends-on): Likewise. * modules/isdir (Depends-on): Likewise. * modules/link (Depends-on): Likewise. * modules/lstat (Depends-on): Likewise. * modules/mkdir-p (Depends-on): Likewise. * modules/modechange (Depends-on): Likewise. * modules/open (Depends-on): Likewise. * modules/readlink (Depends-on): Likewise. * modules/same (Depends-on): Likewise. Signed-off-by: Eric Blake --- ChangeLog | 13 +++++++++++++ modules/chown | 1 + modules/euidaccess | 1 + modules/fchdir | 1 + modules/isdir | 2 +- modules/link | 1 + modules/lstat | 1 + modules/mkdir-p | 1 + modules/modechange | 1 + modules/open | 1 + modules/readlink | 1 + modules/same | 1 + 12 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d0aa2c455..100272237 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,18 @@ 2009-09-19 Eric Blake + stat: add as dependency to other modules + * modules/chown (Depends-on): Add stat. + * modules/euidaccess (Depends-on): Likewise. + * modules/fchdir (Depends-on): Likewise. + * modules/isdir (Depends-on): Likewise. + * modules/link (Depends-on): Likewise. + * modules/lstat (Depends-on): Likewise. + * modules/mkdir-p (Depends-on): Likewise. + * modules/modechange (Depends-on): Likewise. + * modules/open (Depends-on): Likewise. + * modules/readlink (Depends-on): Likewise. + * modules/same (Depends-on): Likewise. + stat: fix Solaris 9 bug * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing slash. diff --git a/modules/chown b/modules/chown index cf9921089..88d0cd458 100644 --- a/modules/chown +++ b/modules/chown @@ -9,6 +9,7 @@ m4/chown.m4 Depends-on: open unistd +stat sys_stat configure.ac: diff --git a/modules/euidaccess b/modules/euidaccess index 47d9716e2..bf329c64d 100644 --- a/modules/euidaccess +++ b/modules/euidaccess @@ -9,6 +9,7 @@ Depends-on: unistd extensions group-member +stat sys_stat configure.ac: diff --git a/modules/fchdir b/modules/fchdir index b35e38584..69ac3c308 100644 --- a/modules/fchdir +++ b/modules/fchdir @@ -16,6 +16,7 @@ include_next malloc-posix open realloc-posix +stat stdbool strdup-posix sys_stat diff --git a/modules/isdir b/modules/isdir index 09f59563a..001546ea8 100644 --- a/modules/isdir +++ b/modules/isdir @@ -6,6 +6,7 @@ lib/isdir.c m4/isdir.m4 Depends-on: +stat configure.ac: gl_ISDIR @@ -20,4 +21,3 @@ GPL Maintainer: Jim Meyering - diff --git a/modules/link b/modules/link index 949295099..6a006c31e 100644 --- a/modules/link +++ b/modules/link @@ -6,6 +6,7 @@ lib/link.c m4/link.m4 Depends-on: +stat strdup-posix sys_stat unistd diff --git a/modules/lstat b/modules/lstat index b0c8b4436..e4eabb5ac 100644 --- a/modules/lstat +++ b/modules/lstat @@ -6,6 +6,7 @@ lib/lstat.c m4/lstat.m4 Depends-on: +stat sys_stat configure.ac: diff --git a/modules/mkdir-p b/modules/mkdir-p index 20e3a23b4..3b0abdf41 100644 --- a/modules/mkdir-p +++ b/modules/mkdir-p @@ -17,6 +17,7 @@ lchown mkancesdirs quote savewd +stat stat-macros stdbool sys_stat diff --git a/modules/modechange b/modules/modechange index 80d8b7066..e58589a63 100644 --- a/modules/modechange +++ b/modules/modechange @@ -8,6 +8,7 @@ lib/modechange.c m4/modechange.m4 Depends-on: +stat stat-macros stdbool sys_stat diff --git a/modules/open b/modules/open index 601e0641d..0b8b303f1 100644 --- a/modules/open +++ b/modules/open @@ -8,6 +8,7 @@ m4/mode_t.m4 Depends-on: fcntl-h +stat configure.ac: gl_FUNC_OPEN diff --git a/modules/readlink b/modules/readlink index 8e2a1de50..eb32ef53e 100644 --- a/modules/readlink +++ b/modules/readlink @@ -6,6 +6,7 @@ lib/readlink.c m4/readlink.m4 Depends-on: +stat unistd configure.ac: diff --git a/modules/same b/modules/same index b17d7356d..a6fc64f9e 100644 --- a/modules/same +++ b/modules/same @@ -12,6 +12,7 @@ xalloc error dirname same-inode +stat stdbool memcmp -- 2.11.0