History log of /openbsd-current/usr.bin/uudecode/uudecode.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.29 30-Aug-2022 yasuoka

Use BUFSIZ instead of PATH_MAX. Since it doesn't anything with a file
system path. input from claudio

ok tb claudio


# 1.28 30-Aug-2022 yasuoka

Give a string which length is multiple of 4 to b64_pton() since the
function assumes that the input ends at end of 24-bit group.

ok tb claudio


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.27 28-Jun-2019 deraadt

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 tags: OPENBSD_6_5_BASE
# 1.26 10-Mar-2019 schwarze

Delete useless calls to setlocale(3):
uudecode(1) and uuencode(1) do nothing locale-dependent.
While here, sort headers, make usage() static, return from main()
rather than exit(3), and drop two redundant case statements.
This is a minimally tweaked version of a patch from Jan Stary.
OK tedu@


# 1.25 31-Dec-2018 bluhm

If there is an invalid character in the uuencoded stream, uudecode(1)
should print the offending ASCII code in the error message.
OK kn@ millert@ tedu@


# 1.24 31-Dec-2018 kn

Zap unused <sys/socket.h>

Included since millert's sync with FreeBSD in 2004 which still has it.
No object change.

OK millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.23 03-Jan-2016 tb

Add missing pledge "getpw". If -s or -o were specified on the command
line and the `remote file name' is subject to `tilde expansion', a call
to getpwnam(3) happens.

ok semarie@


# 1.22 09-Oct-2015 deraadt

Change all tame callers to namechange to pledge(2).


# 1.21 07-Oct-2015 deraadt

tame "stdio rpath wpath cpath" or a more mundane "stdio rpath", depending
on which arguments the programs are run under.
ok doug


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.20 16-Jan-2015 deraadt

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 tags: OPENBSD_5_6_BASE
# 1.19 20-May-2014 guenther

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

ok jsing@ krw@ millert@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.18 04-Mar-2012 fgsch

In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 29-Jul-2008 sobrado

an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok millert@, pyr@


# 1.15 05-Jul-2008 sobrado

each utility must have its own usage and its own set of options;
b64encode and b64decode are equivalent to running uuencode and uudecode
respectively with the -m flag specified, so this flag should not be
available in these utilities; while here, fix synopsis.

based on millert's diff for compress/gzip.

ok millert@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.14 09-Apr-2004 millert

Sync with FreeBSD; adds base64 support and other options.
OK deraadt@, some man page tweaks from jmc@


Revision tags: OPENBSD_3_5_BASE
# 1.13 09-Dec-2003 mickey

user err/warn


Revision tags: OPENBSD_3_4_BASE
# 1.12 10-Jul-2003 david

add missing includes
ok deraadt@ tedu@


# 1.11 10-Jun-2003 deraadt

mostly ansi cleanup; pval ok


# 1.10 03-Jun-2003 millert

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


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 01-Feb-2000 deraadt

no need to extern int errno if errno.h is included


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.7 15-Sep-1998 millert

getopt returns int, not char; rahnds@openbsd.org


# 1.6 31-Aug-1998 dgregor

Add pass-through ('-p') option to uudecode.


# 1.5 29-May-1998 deraadt

accept spaces in name


# 1.4 11-May-1998 deraadt

set max field width of %s correctly


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.3 17-Jan-1997 millert

r?index -> strr?chr


Revision tags: OPENBSD_2_0_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.27 28-Jun-2019 deraadt

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 tags: OPENBSD_6_5_BASE
# 1.26 10-Mar-2019 schwarze

Delete useless calls to setlocale(3):
uudecode(1) and uuencode(1) do nothing locale-dependent.
While here, sort headers, make usage() static, return from main()
rather than exit(3), and drop two redundant case statements.
This is a minimally tweaked version of a patch from Jan Stary.
OK tedu@


# 1.25 31-Dec-2018 bluhm

If there is an invalid character in the uuencoded stream, uudecode(1)
should print the offending ASCII code in the error message.
OK kn@ millert@ tedu@


# 1.24 31-Dec-2018 kn

Zap unused <sys/socket.h>

Included since millert's sync with FreeBSD in 2004 which still has it.
No object change.

OK millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.23 03-Jan-2016 tb

Add missing pledge "getpw". If -s or -o were specified on the command
line and the `remote file name' is subject to `tilde expansion', a call
to getpwnam(3) happens.

ok semarie@


# 1.22 09-Oct-2015 deraadt

Change all tame callers to namechange to pledge(2).


# 1.21 07-Oct-2015 deraadt

tame "stdio rpath wpath cpath" or a more mundane "stdio rpath", depending
on which arguments the programs are run under.
ok doug


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.20 16-Jan-2015 deraadt

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 tags: OPENBSD_5_6_BASE
# 1.19 20-May-2014 guenther

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

ok jsing@ krw@ millert@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.18 04-Mar-2012 fgsch

In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 29-Jul-2008 sobrado

an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok millert@, pyr@


# 1.15 05-Jul-2008 sobrado

each utility must have its own usage and its own set of options;
b64encode and b64decode are equivalent to running uuencode and uudecode
respectively with the -m flag specified, so this flag should not be
available in these utilities; while here, fix synopsis.

based on millert's diff for compress/gzip.

ok millert@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.14 09-Apr-2004 millert

Sync with FreeBSD; adds base64 support and other options.
OK deraadt@, some man page tweaks from jmc@


Revision tags: OPENBSD_3_5_BASE
# 1.13 09-Dec-2003 mickey

user err/warn


Revision tags: OPENBSD_3_4_BASE
# 1.12 10-Jul-2003 david

add missing includes
ok deraadt@ tedu@


# 1.11 10-Jun-2003 deraadt

mostly ansi cleanup; pval ok


# 1.10 03-Jun-2003 millert

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


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 01-Feb-2000 deraadt

no need to extern int errno if errno.h is included


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.7 15-Sep-1998 millert

getopt returns int, not char; rahnds@openbsd.org


# 1.6 31-Aug-1998 dgregor

Add pass-through ('-p') option to uudecode.


# 1.5 29-May-1998 deraadt

accept spaces in name


# 1.4 11-May-1998 deraadt

set max field width of %s correctly


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.3 17-Jan-1997 millert

r?index -> strr?chr


Revision tags: OPENBSD_2_0_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_5_BASE
# 1.26 10-Mar-2019 schwarze

Delete useless calls to setlocale(3):
uudecode(1) and uuencode(1) do nothing locale-dependent.
While here, sort headers, make usage() static, return from main()
rather than exit(3), and drop two redundant case statements.
This is a minimally tweaked version of a patch from Jan Stary.
OK tedu@


# 1.25 31-Dec-2018 bluhm

If there is an invalid character in the uuencoded stream, uudecode(1)
should print the offending ASCII code in the error message.
OK kn@ millert@ tedu@


# 1.24 31-Dec-2018 kn

Zap unused <sys/socket.h>

Included since millert's sync with FreeBSD in 2004 which still has it.
No object change.

OK millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.23 03-Jan-2016 tb

Add missing pledge "getpw". If -s or -o were specified on the command
line and the `remote file name' is subject to `tilde expansion', a call
to getpwnam(3) happens.

ok semarie@


# 1.22 09-Oct-2015 deraadt

Change all tame callers to namechange to pledge(2).


# 1.21 07-Oct-2015 deraadt

tame "stdio rpath wpath cpath" or a more mundane "stdio rpath", depending
on which arguments the programs are run under.
ok doug


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.20 16-Jan-2015 deraadt

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 tags: OPENBSD_5_6_BASE
# 1.19 20-May-2014 guenther

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

ok jsing@ krw@ millert@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.18 04-Mar-2012 fgsch

In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 29-Jul-2008 sobrado

an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok millert@, pyr@


# 1.15 05-Jul-2008 sobrado

each utility must have its own usage and its own set of options;
b64encode and b64decode are equivalent to running uuencode and uudecode
respectively with the -m flag specified, so this flag should not be
available in these utilities; while here, fix synopsis.

based on millert's diff for compress/gzip.

ok millert@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.14 09-Apr-2004 millert

Sync with FreeBSD; adds base64 support and other options.
OK deraadt@, some man page tweaks from jmc@


Revision tags: OPENBSD_3_5_BASE
# 1.13 09-Dec-2003 mickey

user err/warn


Revision tags: OPENBSD_3_4_BASE
# 1.12 10-Jul-2003 david

add missing includes
ok deraadt@ tedu@


# 1.11 10-Jun-2003 deraadt

mostly ansi cleanup; pval ok


# 1.10 03-Jun-2003 millert

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


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 01-Feb-2000 deraadt

no need to extern int errno if errno.h is included


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.7 15-Sep-1998 millert

getopt returns int, not char; rahnds@openbsd.org


# 1.6 31-Aug-1998 dgregor

Add pass-through ('-p') option to uudecode.


# 1.5 29-May-1998 deraadt

accept spaces in name


# 1.4 11-May-1998 deraadt

set max field width of %s correctly


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.3 17-Jan-1997 millert

r?index -> strr?chr


Revision tags: OPENBSD_2_0_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.25 31-Dec-2018 bluhm

If there is an invalid character in the uuencoded stream, uudecode(1)
should print the offending ASCII code in the error message.
OK kn@ millert@ tedu@


# 1.24 31-Dec-2018 kn

Zap unused <sys/socket.h>

Included since millert's sync with FreeBSD in 2004 which still has it.
No object change.

OK millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.23 03-Jan-2016 tb

Add missing pledge "getpw". If -s or -o were specified on the command
line and the `remote file name' is subject to `tilde expansion', a call
to getpwnam(3) happens.

ok semarie@


# 1.22 09-Oct-2015 deraadt

Change all tame callers to namechange to pledge(2).


# 1.21 07-Oct-2015 deraadt

tame "stdio rpath wpath cpath" or a more mundane "stdio rpath", depending
on which arguments the programs are run under.
ok doug


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.20 16-Jan-2015 deraadt

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 tags: OPENBSD_5_6_BASE
# 1.19 20-May-2014 guenther

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

ok jsing@ krw@ millert@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.18 04-Mar-2012 fgsch

In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 29-Jul-2008 sobrado

an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok millert@, pyr@


# 1.15 05-Jul-2008 sobrado

each utility must have its own usage and its own set of options;
b64encode and b64decode are equivalent to running uuencode and uudecode
respectively with the -m flag specified, so this flag should not be
available in these utilities; while here, fix synopsis.

based on millert's diff for compress/gzip.

ok millert@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.14 09-Apr-2004 millert

Sync with FreeBSD; adds base64 support and other options.
OK deraadt@, some man page tweaks from jmc@


Revision tags: OPENBSD_3_5_BASE
# 1.13 09-Dec-2003 mickey

user err/warn


Revision tags: OPENBSD_3_4_BASE
# 1.12 10-Jul-2003 david

add missing includes
ok deraadt@ tedu@


# 1.11 10-Jun-2003 deraadt

mostly ansi cleanup; pval ok


# 1.10 03-Jun-2003 millert

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


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 01-Feb-2000 deraadt

no need to extern int errno if errno.h is included


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.7 15-Sep-1998 millert

getopt returns int, not char; rahnds@openbsd.org


# 1.6 31-Aug-1998 dgregor

Add pass-through ('-p') option to uudecode.


# 1.5 29-May-1998 deraadt

accept spaces in name


# 1.4 11-May-1998 deraadt

set max field width of %s correctly


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.3 17-Jan-1997 millert

r?index -> strr?chr


Revision tags: OPENBSD_2_0_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.23 03-Jan-2016 tb

Add missing pledge "getpw". If -s or -o were specified on the command
line and the `remote file name' is subject to `tilde expansion', a call
to getpwnam(3) happens.

ok semarie@


# 1.22 09-Oct-2015 deraadt

Change all tame callers to namechange to pledge(2).


# 1.21 07-Oct-2015 deraadt

tame "stdio rpath wpath cpath" or a more mundane "stdio rpath", depending
on which arguments the programs are run under.
ok doug


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.20 16-Jan-2015 deraadt

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 tags: OPENBSD_5_6_BASE
# 1.19 20-May-2014 guenther

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

ok jsing@ krw@ millert@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.18 04-Mar-2012 fgsch

In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 29-Jul-2008 sobrado

an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok millert@, pyr@


# 1.15 05-Jul-2008 sobrado

each utility must have its own usage and its own set of options;
b64encode and b64decode are equivalent to running uuencode and uudecode
respectively with the -m flag specified, so this flag should not be
available in these utilities; while here, fix synopsis.

based on millert's diff for compress/gzip.

ok millert@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.14 09-Apr-2004 millert

Sync with FreeBSD; adds base64 support and other options.
OK deraadt@, some man page tweaks from jmc@


Revision tags: OPENBSD_3_5_BASE
# 1.13 09-Dec-2003 mickey

user err/warn


Revision tags: OPENBSD_3_4_BASE
# 1.12 10-Jul-2003 david

add missing includes
ok deraadt@ tedu@


# 1.11 10-Jun-2003 deraadt

mostly ansi cleanup; pval ok


# 1.10 03-Jun-2003 millert

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


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 01-Feb-2000 deraadt

no need to extern int errno if errno.h is included


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.7 15-Sep-1998 millert

getopt returns int, not char; rahnds@openbsd.org


# 1.6 31-Aug-1998 dgregor

Add pass-through ('-p') option to uudecode.


# 1.5 29-May-1998 deraadt

accept spaces in name


# 1.4 11-May-1998 deraadt

set max field width of %s correctly


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.3 17-Jan-1997 millert

r?index -> strr?chr


Revision tags: OPENBSD_2_0_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision