summaryrefslogtreecommitdiff
path: root/usr.bin/uudecode
AgeCommit message (Collapse)Author
2022-08-30Use BUFSIZ instead of PATH_MAX. Since it doesn't anything with a fileYASUOKA Masahiko
system path. input from claudio ok tb claudio
2022-08-30Give a string which length is multiple of 4 to b64_pton() since theYASUOKA Masahiko
function assumes that the input ends at end of 24-bit group. ok tb claudio
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
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.
2019-03-10Delete useless calls to setlocale(3):Ingo Schwarze
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@
2018-12-31If there is an invalid character in the uuencoded stream, uudecode(1)Alexander Bluhm
should print the offending ASCII code in the error message. OK kn@ millert@ tedu@
2018-12-31Zap unused <sys/socket.h>kn
Included since millert's sync with FreeBSD in 2004 which still has it. No object change. OK millert
2016-01-03Add missing pledge "getpw". If -s or -o were specified on the commandtb
line and the `remote file name' is subject to `tilde expansion', a call to getpwnam(3) happens. ok semarie@
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-07tame "stdio rpath wpath cpath" or a more mundane "stdio rpath", dependingTheo de Raadt
on which arguments the programs are run under. ok doug
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-05-20Use errc/warnc to simplify code.Philip Guenther
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()Federico G. Schwindt
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2008-07-29an enum specifier is more elegant than a set of #defines;Igor Sobrado
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@
2008-07-05each utility must have its own usage and its own set of options;Igor Sobrado
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@
2004-04-09Sync with FreeBSD; adds base64 support and other options.Todd C. Miller
OK deraadt@, some man page tweaks from jmc@
2003-12-09user err/warnMichael Shalayeff
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2001-11-19kill more registersMike Pechkin
millert@ ok
2000-02-01no need to extern int errno if errno.h is includedTheo de Raadt
1998-09-15getopt returns int, not char; rahnds@openbsd.orgTodd C. Miller
1998-08-31Add pass-through ('-p') option to uudecode.dgregor
1998-05-29accept spaces in nameTheo de Raadt
1998-05-11set max field width of %s correctlyTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-01-17r?index -> strr?chrTodd C. Miller
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt