OpenBSD CVS

CVS log for src/usr.bin/ftp/ruserpass.c


[BACK] Up to [local] / src / usr.bin / ftp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:01 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.32 / (download) - annotate - [select for diffs], Thu May 16 12:44:18 2019 UTC (5 years ago) by florian
Branch: MAIN
Changes since 1.31: +0 -0 lines
Diff to previous 1.31 (colored)

Revert suni'ls ftp rewrite for now.
We are juggling too many things at the moment and we can't deal with
the differences in behaviour right now.

Revision 1.31, Sun May 12 20:44:39 2019 UTC (5 years ago) by kmos
Branch: MAIN
Changes since 1.30: +1 -1 lines
FILE REMOVED

Move us from old ftp(1) to Sunil's new ftp(1). The necessary modifications
have been made to make it behave. Any new misbehaviors can be fixed in tree.

OK florian@ deraadt@ "Have you committed ftp yet?"

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:08 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 20 01:25:23 2014 UTC (10 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

ok jsing@ krw@ millert@

Revision 1.28 / (download) - annotate - [select for diffs], Tue May 5 19:35:30 2009 UTC (15 years ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

make it clean removing the ifdef SMALL maze.  separate cmds and
small stuff.  make it a fetcher.  shrinks quite a bit
agreed by millert@, krw@
ok theo, sthen@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 27 21:37:13 2009 UTC (15 years ago) by deraadt
Branch: MAIN
Changes since 1.26: +1 -8 lines
Diff to previous 1.26 (colored)

toast the rcsid strings which just get in the way

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 25 21:15:19 2008 UTC (15 years, 10 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

in resume mode, pass -c to mget when {dir,file}hasglob, so that i'm
able to continue multiple transfers with -C;  ok millert@
while here fix some comments (!SMALL vs. SMALL stuff), and add
missing

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jun 20 17:56:37 2007 UTC (16 years, 11 months ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.24: +18 -13 lines
Diff to previous 1.24 (colored)

Add missing return value checks for strdup() andd fgetc().
From Nicholas Marriott. Reminded by ray@.

ok ray@ jaredy@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 6 19:15:33 2007 UTC (16 years, 11 months ago) by pyr
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Remove the .netrc parser when compiling a SMALL binary.
there is no .netrc file on the install media and keeping the parser
shaves a good deal of bytes in the binary.
ok millert@, "go on" deraadt@, "makes sense" steven@

Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 24 14:29:02 2007 UTC (17 years, 1 month ago) by moritz
Branch: MAIN
Changes since 1.22: +10 -6 lines
Diff to previous 1.22 (colored)

Use MAXPATHLEN for buffer, which is only used for path construction
and fix handling of empty macdefs, which could result in the mac_end
ptr beeing smaller than mac_start, resulting in crashes later on.

From Nicholas Marriott.

ok millert@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Mar 22 15:25:17 2007 UTC (17 years, 2 months ago) by moritz
Branch: MAIN
Changes since 1.21: +4 -5 lines
Diff to previous 1.21 (colored)

Remove wrong length check, which ignored the '/' character
and let snprintf(3) decide if the path fitted into the buffer.
Inspired by a diff from Nicholas Marriott.

OK millert@ ray@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 22 11:35:02 2007 UTC (17 years, 2 months ago) by moritz
Branch: MAIN
Changes since 1.20: +27 -8 lines
Diff to previous 1.20 (colored)

Fix buffer overflow when parsing the .netrc file.
From Nicholas Marriott.

ok millert@ deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Tue May 16 23:43:16 2006 UTC (18 years ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Remove shadowing variables and properly use /* FALLTHROUGH */
comments.  No binary change.

Found by lint.

OK beck@, deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Apr 25 05:45:20 2006 UTC (18 years ago) by tedu
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

two strtol calls that were begging to be converted to strtonum

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 20 03:50:26 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.17: +4 -6 lines
Diff to previous 1.17 (colored)

ansi; khalek@linuxgamers.net

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 16 21:46:22 2003 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.16: +4 -2 lines
Diff to previous 1.16 (colored)

for -DSMALL, do not include rcsid[]s

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:08 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.15: +3 -7 lines
Diff to previous 1.15 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 5 17:19:47 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.14: +10 -16 lines
Diff to previous 1.14 (colored)

string fixes; ok miod henning

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 31 23:04:07 2003 UTC (21 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Treat empty environment variables the same as NULL.  henning@ OK

Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:46 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 27 19:59:13 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

If the HOME environment variable is not set, do not try to read
.netrc from cwd.  Mostly paranoia but good practive.  Closes PR 1332.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 30 06:59:35 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various places

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 5 00:02:30 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.9: +11 -11 lines
Diff to previous 1.9 (colored)

getc() -> fgetc() for easy socksification.  imp@openbsd.org

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jul 25 21:56:22 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.8: +7 -5 lines
Diff to previous 1.8 (colored)

Updates from NetBSD (lukem) include -Wall cleanup.
More -W* cleanup and in_port_t usage by me.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 23 20:33:21 1997 UTC (27 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.7: +12 -12 lines
Diff to previous 1.7 (colored)

allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to work

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 10 00:17:10 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Sync with NetBSD (lukem)
    * support $ftp_proxy for ftp:// transfers [bin/3245]
    * add "more" & "less" as synonyms for "page"
    * move editline setup code into controlediting(), and call appropriately.
      only setup setup terminal if going into interactive mode.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 14 04:32:17 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

Sync with NetBSD and fix "get foo.txt /dev/tty" wrt progress meter
and setting times.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 3 01:05:44 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.4: +19 -18 lines
Diff to previous 1.4 (colored)

Add back ``-r'' option and fix strncpy() usage and other nits because
I'm anal.  Closer to KNF now.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Feb 3 01:02:42 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.3: +25 -13 lines
Diff to previous 1.3 (colored)

Sync with NetBSD

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 28 00:32:30 1996 UTC (27 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.2: +7 -2 lines
Diff to previous 1.2 (colored)

Safe $HOME usage.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:33:39 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:18 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:18 1995 UTC (28 years, 7 months ago) by deraadt
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.