aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2014-01-22 16:20:35 -0600
committerPeter Seebach <peter.seebach@windriver.com>2014-01-22 16:22:46 -0600
commit97705dccbf9ed86698729faa0c82cbf2d28d6949 (patch)
tree69501defbc2369ce6fe91b8cd6bc9fd18680ea9a /pseudo.h
parent4759b592c3dc9a3386192d7d1ae5c3857850247e (diff)
downloadpseudo-97705dccbf9ed86698729faa0c82cbf2d28d6949.tar.gz
pseudo-97705dccbf9ed86698729faa0c82cbf2d28d6949.tar.bz2
pseudo-97705dccbf9ed86698729faa0c82cbf2d28d6949.zip
Don't automatically fall back to /etc/passwd.
In some cases, we'd rather pseudo fail than fall back to using /etc/passwd or /etc/group. Make the determination of what to fall back to when neither PSEUDO_PASSWD nor a chroot directory contains passwd/group files controllable by a configure-time flag, controlled by --with-passwd-fallback= or --without-passwd-fallback.
Diffstat (limited to 'pseudo.h')
-rw-r--r--pseudo.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/pseudo.h b/pseudo.h
index 15df164..1a0b257 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -76,8 +76,7 @@ extern int pseudo_logfile(char *defname);
extern ssize_t pseudo_sys_path_max(void);
extern ssize_t pseudo_path_max(void);
#define PSEUDO_PWD_MAX 4096
-extern int pseudo_etc_file(const char *filename, char *realname, int flags, char **search, int dircount);
-#define PSEUDO_ETC_FILE(name, realname, flags) pseudo_etc_file((name), (realname), (flags), (char *[]) { pseudo_chroot, pseudo_passwd }, 2)
+extern int pseudo_etc_file(const char *filename, char *realname, int flags, char *path[], int dircount);
extern void pseudo_stat32_from64(struct stat *, const struct stat64 *);
extern void pseudo_stat64_from32(struct stat64 *, const struct stat *);