The NetBSD Project

CVS log for src/libexec/ftpd/popen.c

[BACK] Up to [cvs.NetBSD.org] / src / libexec / ftpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 17 00:17:58 2016 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

volatile for gcc 5

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Sun Jun 13 18:12:36 2010 UTC (8 years, 4 months ago) by riz
Branch: netbsd-4
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Pull up following revision(s) (requested by dholland in ticket #1395):
	libexec/ftpd/popen.c: revision 1.37
PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)

Revision 1.34.10.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:26:10 2010 UTC (8 years, 6 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync to netbsd-5

Revision 1.34.8.1 / (download) - annotate - [select for diffs], Mon Apr 12 02:33:59 2010 UTC (8 years, 6 months ago) by snj
Branch: netbsd-5-0
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Pull up following revision(s) (requested by lukem in ticket #1372):
	libexec/ftpd/popen.c: revision 1.37
PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Mon Apr 12 02:28:16 2010 UTC (8 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Pull up following revision(s) (requested by lukem in ticket #1372):
	libexec/ftpd/popen.c: revision 1.37
PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)

Revision 1.37 / (download) - annotate - [select for diffs], Sat Mar 20 18:23:30 2010 UTC (8 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored)

PR/43023: Bruce Cran: FTPD bug remote crash
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:37 2009 UTC (9 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.34: +6 -5 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 18 02:27:41 2009 UTC (9 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.35: +4 -3 lines
Diff to previous 1.35 (colored)

Fix 'vfork clobber' warning on vax.
Problem noted by and fix confirmed by Olaf 'Rhialto' Seibert.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 15 07:48:36 2009 UTC (9 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:35:51 2008 UTC (10 years, 1 month ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.32.2.1: +3 -3 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Sep 13 02:41:52 2008 UTC (10 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: netbsd-5-0, netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Crank copyright dates

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:29:54 2008 UTC (10 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.31.18.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:13:39 2008 UTC (10 years, 4 months ago) by yamt
Branch: yamt-pf42
Changes since 1.31.18.1: +3 -3 lines
Diff to previous 1.31.18.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 9 00:33:40 2008 UTC (10 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.

Revision 1.31.18.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:44 2008 UTC (10 years, 5 months ago) by yamt
Branch: yamt-pf42
Changes since 1.31: +2 -9 lines
Diff to previous 1.31 (colored)

sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:03 2008 UTC (10 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.31: +2 -9 lines
Diff to previous 1.31 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.31 / (download) - annotate - [select for diffs], Wed Feb 1 14:20:14 2006 UTC (12 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pf42, netbsd-4
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored)

debug -> ftpd_debug
xstrdup -> ftpd_strdup

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Tue Aug 31 01:35:53 2004 UTC (14 years, 1 month ago) by jmc
Branch: netbsd-1-6
Changes since 1.27: +10 -15 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Pullup rev 1.28-1.30 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809.  Fixes SA#2004-009.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Thu Aug 26 05:00:41 2004 UTC (14 years, 2 months ago) by jmc
Branch: netbsd-1-5
Changes since 1.22.4.1: +16 -21 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Pullup rev 1.26-1.30 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809.  Fixes SA#2004-009.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Thu Aug 12 20:44:39 2004 UTC (14 years, 2 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Pullup rev 1.30 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
  abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once.  If we need to change it,
  cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
  latter isn't reentrant and the hacks to work around that are ugly.
  We now examine urgflag at appropriate locations and call handleoobcmd()
  if it's set.  Since the only OOB commands we currently implement are
  ABOR and STAT, this isn't an issue.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Aug 9 12:56:48 2004 UTC (14 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored)

Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
  abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once.  If we need to change it,
  cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
  latter isn't reentrant and the hacks to work around that are ugly.
  We now examine urgflag at appropriate locations and call handleoobcmd()
  if it's set.  Since the only OOB commands we currently implement are
  ABOR and STAT, this isn't an issue.  (I also can't find the reference in
  RFC2228 where MIC, CONF & ENC are OOB-only commands.  Go figure.)
  I could clean up the is_oob stuff some more, but the remaining stuff
  in ftpcmd.y is harmless and it's unnecessary churn right this moment.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 7 09:46:40 2003 UTC (15 years, 2 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.28: +3 -7 lines
Diff to previous 1.28 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jan 16 09:41:38 2003 UTC (15 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.27: +8 -8 lines
Diff to previous 1.27 (colored)

Rename `sigset' locals to avoid symbol shadowing warning.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Dec 1 10:25:30 2001 UTC (16 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, fvdl_fs64_base
Branch point for: netbsd-1-6
Changes since 1.26: +8 -8 lines
Diff to previous 1.26 (colored)

- enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2

Revision 1.26 / (download) - annotate - [select for diffs], Wed Apr 25 01:46:26 2001 UTC (17 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sun Apr 1 16:08:21 2001 UTC (17 years, 6 months ago) by he
Branch: netbsd-1-4
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Pull up revision 1.24 (requested by christos):
  Fixes buffer overflow problems in glob(3).  Adds and uses GLOB_LIMIT
  to prevent denial of service attacks.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Thu Mar 29 14:14:18 2001 UTC (17 years, 6 months ago) by lukem
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.22: +16 -6 lines
Diff to previous 1.22 (colored)

sync ftpd to -current with the following revisions (for lukem/christos):
	Makefile	1.43-1.44
	cmds.c		1.7-1.8,  1.10-1.12
	conf.c		1.35-1.40
	extern.h	1.32-1.38
	ftpcmd.y	1.53-1.59
	ftpd.8		1.58-1.63
	ftpd.c		1.102-1.104,  1.106-1.122
	ftpd.conf.5	1.12-1.15
	ftpusers.5	1.8
	logwtmp.c	1.16
	popen.c		1.23-1.25
	version.h	1.28

a quick summary of user-visible changes;
	- fix glob DoS by using GLOB_LIMIT
	- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
	- add flags: -P dataport, -X - wuftpd style log entries,
	  -q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
	  -w/-W - (en|dis)able wtmp

Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 18 22:42:22 2001 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.24: +10 -5 lines
Diff to previous 1.24 (colored)

don't leak globbed memory.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 16 20:42:13 2001 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Use GLOB_LIMIT. Also fix a bug where gl_offs was not initialized and could
contain trash.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 30 02:59:11 2000 UTC (17 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.22: +7 -2 lines
Diff to previous 1.22 (colored)

- move password checking into separate valid_passwd() function, to assist
  in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
  latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
  support if this is to be used on NetBSD.

Revision 1.22 / (download) - annotate - [select for diffs], Sat May 20 23:34:55 2000 UTC (18 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

- Always close(pdata) if it was a valid filedescriptor before setting it to -1.
  Problem noted in [bin/9642] by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>,
  (part of which already had been solved by itojun a while ago), and provided
  patch covered most of the fixes needed. (Thanks Takahiro!)
- Consistently indent goto labels by one space.

Revision 1.21 / (download) - annotate - [select for diffs], Sat May 20 02:20:19 2000 UTC (18 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.20: +5 -9 lines
Diff to previous 1.20 (colored)

convert to ANSI C as per style guide

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 5 06:12:19 2000 UTC (18 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

* don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jan 12 22:39:29 2000 UTC (18 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

* add ftpd.conf directive `portrange class min max', which allows specification
  of the port range used by passive connections. based on work in [bin/9158]
  from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
  consistent.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:13 1999 UTC (18 years, 10 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.16: +63 -58 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Pull up to last week's -current.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 12 14:05:55 1999 UTC (18 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.17: +38 -2 lines
Diff to previous 1.17 (colored)

* change format of /etc/ftpusers lines from
	userglob [allow|deny]
  to
	userglob[@host] [allow|deny  [classname]]
  where class is a userdefined classname.
  - if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
    hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
  - if classname is given, use that to match entries in ftpd.conf (defaults
    to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
    /etc/ftpchroot, and `real' for everyone else.

* implement new /etc/ftpd.conf directives:
    classtype classname type	set type of classname to GUEST, CHROOT, or REAL
    motd classname file		file to use instead of /etc/motd
    rateget classname rate	set rateget throttle to rate
    rateput classname rate	set rateput throttle to rate
    upload classname		allow/deny uploads (STOU, STOR, APPE). if
				denied, also acts as `modify deny'.

* implement new `SITE' commands:
    RATEGET	as per /etc/ftpd.conf rateget, but cannot exceed that
    RATEPUT	as per /etc/ftpd.conf rateput, but cannot exceed that

* implement format_file(), which outputs a file to the user, parsing %
  escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.

* implement strsuftoi() (from ftp(1)), which parses a number and
  optional suffix (for use with rateget, etc)

* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
  we don't need reserved ports (at wasn't getting them anyway).

* update & reorder copyrights

* use strlcpy() as appropriate

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 7 05:30:54 1999 UTC (18 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.16: +27 -58 lines
Diff to previous 1.16 (colored)

* change ftpd_popen() to take char *argv[] instead of char *cmd.
  the string tokenisation must be performed by the caller (which is
  generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
  tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
  (to take advantage of the above changes).  fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 25 20:07:33 1999 UTC (19 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

more kerberos5 fixes

Revision 1.15 / (download) - annotate - [select for diffs], Tue May 18 08:14:18 1999 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

* fix a problem in retrieve() where arguments to commands weren't working
  (this was broken in the last commit). problem noticed by simonb@
* don't display the stderr output of the internal ls.
* modify usage of lreply so that generally only one `XXX-' code per
  `block' is displayed; the rest of the lines have four spaces instead.
  i find this easier to read.
* fix a couple places where byte accounting wasn't correct

Revision 1.14 / (download) - annotate - [select for diffs], Mon May 17 15:14:54 1999 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.13: +16 -4 lines
Diff to previous 1.13 (colored)

features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
  summary is displayed upon exit (and syslogged).  inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
  should remove the majority of the `hanging ftpd' problems that
  people were still seeing.  inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
  chroot()ed area for `LIST' to work.  based on [bin/4497] from
  "Soren S.  Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
  with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.

internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
  use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
  means ``send line with 4 space prefix''. don't print a space after
  the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
  for more flexible error reporting

Revision 1.13 / (download) - annotate - [select for diffs], Wed Feb 24 16:45:13 1999 UTC (19 years, 8 months ago) by explorer
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored)

Make this build with KERBEROS5 defined.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 28 04:54:01 1998 UTC (19 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)

* replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
  solution with less code replication. use realpath() in logcmd() so
  that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
  former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
  in every file.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 6 10:39:41 1998 UTC (20 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

* complete fix for `multiple replies returned for single parse error'
  problem; move `hasyyerrored' state flag out of yylex() so that
  check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
  otherwise an invalid command after login incorrectly sets the timeout
  to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
  (instead of `BSD-199506')
* move all extern-ed vars into extern.h

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 19 22:59:01 1998 UTC (20 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 8 07:13:13 1998 UTC (20 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.8: +10 -8 lines
Diff to previous 1.8 (colored)

support displaying the stderr output from a LIST or a conversion to
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).

XXX:	a better method of storing the stderr output would be nice, but
	is a lot more effort to implement. this feature can at least be
	used temporarily whilst debugging why an ftp conversion doesn't
	work.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 18 19:05:52 1997 UTC (21 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.7: +49 -12 lines
Diff to previous 1.7 (colored)

- Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 14 08:43:33 1997 UTC (21 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.6: +8 -4 lines
Diff to previous 1.6 (colored)

* implement /etc/ftpd.conf, which adds support for the following features,
  controllable on a per class (which is one of: real, chroot, guest,
  all or none) basis:
    * on-the-fly execution of a command to build the file (a ``conversion''),
      providing support for "get dirname.tar" and the like.
    * displaying the contents of a file when a directory is entered
      for the first time.
    * maximum value for timeout (replaces -T).
    * control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
    * notifying the user of the existance of a files matching a glob
      pattern when a directory is entered for the first time.
    * default value for timeout (replaces -t).
    * default umask (replaces -DGUEST_CMASK and -u).
  The conversion, display, and notify functionality was based on code by
  Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
  -t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
  stderr stream mixing with the stdout stream during a conversion,
  as this can corrupt the stream.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 27 03:21:43 1997 UTC (21 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

* fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Mar 29 23:56:32 1997 UTC (21 years, 7 months ago) by cjs
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +47 -38 lines
Diff to previous 1.1.1.1 (colored)

4.4BSD-lite2 import.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 11 02:45:00 1995 UTC (23 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 21 21:47:19 1995 UTC (23 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +8 -3 lines
Diff to previous 1.3 (colored)

Use POSIX signals.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 29 01:49:50 1994 UTC (24 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.2: +48 -39 lines
Diff to previous 1.2 (colored)

4.4-lite, plus our local changes

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 18:30:43 1993 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add RCS identifiers.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (25 years, 7 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (25 years, 7 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>