summaryrefslogtreecommitdiffstats
path: root/usr.bin/uudecode (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | 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.
* Delete useless calls to setlocale(3):schwarze2019-03-101-7/+5
| | | | | | | | 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@
* If there is an invalid character in the uuencoded stream, uudecode(1)bluhm2018-12-311-17/+24
| | | | | should print the offending ASCII code in the error message. OK kn@ millert@ tedu@
* Zap unused <sys/socket.h>kn2018-12-311-2/+1
| | | | | | | Included since millert's sync with FreeBSD in 2004 which still has it. No object change. OK millert
* Add missing pledge "getpw". If -s or -o were specified on the commandtb2016-01-031-2/+5
| | | | | | | line and the `remote file name' is subject to `tilde expansion', a call to getpwnam(3) happens. ok semarie@
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-5/+5
|
* tame "stdio rpath wpath cpath" or a more mundane "stdio rpath", dependingderaadt2015-10-071-1/+9
| | | | | on which arguments the programs are run under. ok doug
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-6/+6
| | | | | | | | | 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)
* Use errc/warnc to simplify code.guenther2014-05-201-7/+4
| | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
* In preparation for getline and getdelim additions to libc, rename getline()fgsch2012-03-041-5/+5
| | | | | occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-14/+1
| | | | | | | 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
* an enum specifier is more elegant than a set of #defines;sobrado2008-07-291-21/+19
| | | | | | | | | 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@
* each utility must have its own usage and its own set of options;sobrado2008-07-051-18/+39
| | | | | | | | | | 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@
* Sync with FreeBSD; adds base64 support and other options.millert2004-04-092-90/+333
| | | | OK deraadt@, some man page tweaks from jmc@
* user err/warnmickey2003-12-091-18/+11
|
* add missing includesdavid2003-07-101-2/+3
| | | | ok deraadt@ tedu@
* mostly ansi cleanup; pval okderaadt2003-06-101-7/+5
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* kill more registersmpech2001-11-191-4/+4
| | | | millert@ ok
* no need to extern int errno if errno.h is includedderaadt2000-02-011-3/+2
|
* getopt returns int, not char; rahnds@openbsd.orgmillert1998-09-151-3/+3
|
* Add pass-through ('-p') option to uudecode.dgregor1998-08-311-16/+30
|
* accept spaces in namederaadt1998-05-291-3/+3
|
* set max field width of %s correctlyderaadt1998-05-111-3/+3
|
* $OpenBSD$deraadt1997-09-211-2/+1
|
* r?index -> strr?chrmillert1997-01-171-3/+3
|
* rcsidderaadt1996-06-262-2/+3
|
* initial import of NetBSD treederaadt1995-10-182-0/+210