summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/extern.h
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-04-26 12:12:10 +0000
committerdavidn <davidn@FreeBSD.org>1997-04-26 12:12:10 +0000
commita1afe7148074c37601ddb27c0db42c7e7e29ac69 (patch)
tree91a142b078eba657ed76e534ddca5851a3f61c20 /libexec/ftpd/extern.h
parent6323aa10bffe459912ba8b2f8592c7ac4ffd8705 (diff)
downloadFreeBSD-src-a1afe7148074c37601ddb27c0db42c7e7e29ac69.zip
FreeBSD-src-a1afe7148074c37601ddb27c0db42c7e7e29ac69.tar.gz
Adds optional "internal ls" support for ftpd, by collecting
modules from src/bin/ls, and handling exec(_PATH_LS,..) as a special case, very useful in an environment where many users are given chroot access. "~/etc/{s}pwd.db" files are still needed if uid/gid->user/group translation is desired. To enable this it must be compiled with the make variable FTP_INTERNAL_LS defined, either in /etc/make.conf or the environment.
Diffstat (limited to 'libexec/ftpd/extern.h')
-rw-r--r--libexec/ftpd/extern.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/ftpd/extern.h b/libexec/ftpd/extern.h
index ff1cdfb..616da79 100644
--- a/libexec/ftpd/extern.h
+++ b/libexec/ftpd/extern.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)extern.h 8.2 (Berkeley) 4/4/94
- * $Id$
+ * $Id: extern.h,v 1.8 1997/02/22 14:21:26 peter Exp $
*/
void blkfree __P((char **));
@@ -70,3 +70,6 @@ int yyparse __P((void));
#if defined(SKEY) && defined(_PWD_H_) /* XXX evil */
char *skey_challenge __P((char *, struct passwd *, int));
#endif
+#if defined(INTERNAL_LS)
+int ls_main __P((int, char **));
+#endif
OpenPOWER on IntegriCloud