mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-23 03:33:34 -04:00
17 lines
589 B
Bash
17 lines
589 B
Bash
#!/bin/sh
|
|
|
|
#
|
|
# Executes tcpserver with "pubftpd" as the 0th argument and with a fixed banner
|
|
# appropriate for DJB's publicfile FTP server.
|
|
#
|
|
# The reason for this script, as opposed to invoking tcpserver directly, is
|
|
# that the banner (specified with the -B option) needs to include a trailing
|
|
# carriage-return and newline (\015\012) which is difficult, if not impossible,
|
|
# to specify in a NetBSD rc(8) script because rc(8) uses "eval" to evaluate the
|
|
# constructed command.
|
|
#
|
|
|
|
exec @UCSPI_TCP_PREFIX@/bin/argv0 @UCSPI_TCP_PREFIX@/bin/tcpserver pubftpd \
|
|
-B'220 Features: a p .
|
|
' "$@"
|