Commit Graph

48 Commits

Author SHA1 Message Date
rin 270ad452f4 When input is not a multiple of three bytes in size, pad null
characters instead of garbage. This makes output reproducible.

Taken from FreeBSD:
https://svnweb.freebsd.org/base?view=revision&revision=84715

Even though this is not demanded by POSIX, uuencode(1) in
FreeBSD, OpenBSD, macOS, and GNU, behaves that way.
2019-03-04 05:37:08 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
abhinav 00ae54ede2 Remove reference to uucp(1) in SEE ALSO, as it is no more there.
Ok from wiz@
2016-06-06 15:09:33 +00:00
wiz 51b005985e Sort sections. Remove trailing whitespace. 2014-09-06 21:21:36 +00:00
dholland 5136cf6d6b Clarify the usage message. For PR 49177. 2014-09-06 18:58:35 +00:00
dholland 5aa87af538 On reflection change "outputname" to "headername" so it's clear it's not
the output of uuencode.
2014-09-06 18:58:05 +00:00
dholland d1f9310d50 Clarify and generally improve. The expansion of files is not a bug,
it's a consequence of what uuencode does. Also note for a more hostile
internet environment that blindly uudecoding files without inspecting
the header is dangerous.

Pursuant to PR 49177.
2014-09-06 18:54:46 +00:00
dholland fb7387f1d1 Fix wrong use of argument identifiers; pursuant to PR 49177. 2014-09-06 18:37:01 +00:00
apb 708b4c121f Document today's changes to uudecode:
* Add "-o outfile" option.  This is required by POSIX.1-2008.
* Recognise "/dev/stdout" as a magic filename, both when embedded in the
  data stream and when specified via "-o".  This is also required by
  POSIX.1-2008.
2013-01-28 16:08:02 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
joerg aea22a43d4 Specify width for tag list. 2009-03-10 19:54:43 +00:00
wiz 2c1752b597 Really comment out uucp(1) crossref. 2008-12-01 06:52:59 +00:00
dholland 1f595bc8ca Update SEE ALSO per PR 40071: compress -> gzip, add missing tar, comment
out uucp because uucp was removed from base. (Though maybe it should be
left in anyway - it belongs as a crossreference for historical reasons.)

It doesn't seem to me that every tool used in an example must
necessarily appear in SEE ALSO, but it doesn't particularly hurt.
2008-11-30 23:22:46 +00:00
dholland 6a8d114c5f Modernize and expand example. Bump date. 2008-11-29 22:42:53 +00:00
dholland 75cd00a06a Clarify man page with respect to input and output files, and sync usage
message. Prompted by PR 40063 about the usage message.
2008-11-29 22:36:13 +00:00
wiz 8ff1fd42f2 Correction for previous from dillo: it is a backquote, not a single quote. 2008-08-25 09:36:24 +00:00
wiz affdbfea59 Explicitly mention that it is the single quote character, to unconfuse joerg. 2008-08-23 16:32:50 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
wiz f98885cd92 Add -m to SYNOPSIS. 2006-09-24 15:56:42 +00:00
elad 3b4778f8b2 PR/33319: Seebs: base64 is annoying
Thanks to Matt Fleming for implementing a -m switch (base64 mode) for
both uuencode(1) and uudecode(1)! Man-pages updated as well.
2006-09-24 15:32:48 +00:00
wiz 895a553b28 Add setprogname call. 2005-06-29 20:35:48 +00:00
wiz 05da4551bd de-__P(), ansify, use {g,s}etprogname. 2005-06-29 20:34:48 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
soren 4d83b9e44b Fix mistake in algorithm description.
PR misc/17796 by Stefan Meinlschmidt.
2002-08-06 15:26:04 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz d4c3db208c Sort sections, sort SEE ALSO. 2001-12-08 19:21:02 +00:00
wiz 1c9dacf400 Sort sections. 2001-12-08 19:19:41 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
kleink 4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
kleink 5c39723cec Add a -p option to uudecode(1), which causes it to write decoded data to
stdout; based on PR bin/7183 from SUNAGAWA Keiki.
1999-03-18 23:57:11 +00:00
mycroft f47ecc8f5e Nuke trailing comma in SEE ALSO section. 1997-11-01 06:32:13 +00:00
lukem b67eedad79 WARNSify, fix .Nm usage, deprecate register, use err.h 1997-10-20 02:50:59 +00:00
jeremy ebf4cbfe8e Major re-write.
Resolves some outstanding ambiguities and documents the tolerances of uuencode
and uudecode.  [PR/3268]
1997-08-03 08:51:33 +00:00
jeremy dd74602dad Changed inaccuracy in termination description described by PR#2226. 1997-04-10 20:22:50 +00:00
jtc 7439a63b22 Rename uuencode.format(5) to uuencode(5) as recommended by PR #1786 1995-12-05 03:02:31 +00:00
cgd 9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
jtc 373b32ea19 fix typo 1994-11-17 07:40:43 +00:00
jtc 88d0435bc7 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-11-17 07:39:34 +00:00
jtc 0605e44a71 Well behaved POSIX.2 utilities always call setlocale() and getopt(). 1993-11-09 01:46:38 +00:00
jtc 2ddbb97f0f #include <unistd.h>, so getopt(), optarg, opterr, optind, and optopt
declarations can be removed from <stdlib.h>.
1993-10-13 18:33:45 +00:00
jtc f7c6bf575a Minor tweaks: including header files to bring prototypes into scope,
explicitly declaring function return values, etc. to make gcc -Wall
shut up.
1993-08-27 22:30:10 +00:00
jtc 5e2ed6648a Note that uuencode is POSIX.2 compliant. 1993-08-27 22:25:56 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft d0f8d5d2bb Add RCS identifiers. 1993-07-30 22:28:22 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00