summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2003-07-19fix sftp filename parsing for arguments with escaped quotes. bz #517; ok markusDamien Miller
2003-07-19don't specify the leading "/" in MANSUBDIR (otherwise "//" occurs)David Krause
ok millert@
2003-07-18add missing includesDavid Krause
ok tedu@
2003-07-18Previously, "cat" mode (ie: zcat) was set if no input file was specified,Todd C. Miller
and input was read from the standard input. However, if the -o option is specified, we don't need (or want) cat mode since the user has told us where the output should go.
2003-07-18Change "nosave" back into a boolean for improved grokability.Todd C. Miller
It is now initialized to -1 and, if the user did not specify the -n or -N flags, is set equal to "decomp". In other words, unless overridden via -n/-N, it is false when compressing, and true when decompressing (which is what we want).
2003-07-18remove junk; ok otto teduTheo de Raadt
2003-07-18userid is unsigned, but well, force it anyways; andrushock@korovino.netTheo de Raadt
2003-07-17cc -O2 -pipe -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 -DDYN_ALLOC -c ↵Todd C. Miller
unpGet rid of ugly hack in readhash() that appears to be there for machines with a 16 bit word size. Also replace (HALFLONG - 1) with a new define, HASHMASK since it really is a mask. None of this results in any actual change in behavior.
2003-07-17two calls is less than a loop for two; millert@ okMichael Shalayeff
2003-07-17o implement -l, -n and -N (including setting outfile + mtime)Todd C. Miller
o make -v behave like GNU gzip for compress/decompress stats o write a full gzip header w/ mtime and file name o for -t/-l just don't write data instead of writing to /dev/null o exit code is now more consistent with GNU gzip o a crc error on decompress no longer causes unlink(outfile) mickey@ OK
2003-07-17Fix merge error.Otto Moerbeek
ok millert@ tedu@
2003-07-17Make it clear what -C does w/o having to read the description of -A/-B.Todd C. Miller
Lack of clarity pointed out by Sam Smith, different fix suggested by jmc@
2003-07-16Deal with files that lack a final newline before EOF (you naughtyTodd C. Miller
emacs users!). In most cases this just means checking for EOF in addition to '\n'. However, we need to tread carefully in readhash(). There we return 0 on EOF iff it is the first char in a "line". Additionally, if the -b or -w flags were specified and the last character in one file was '\n' but the other file is missing '\n', pretend that we didn't see the newline in the one file. This is consistent with GNU diff. For the non-{b,w} case, print "\ No newline at end of file" when we see EOF before a newline in one file where the other file has one. Again, this is for consistency with GNU diff and patch(1) in -current knows how to interpret this message. OK tedu@ and otto@
2003-07-16some minor DPADD changesTheo de Raadt
2003-07-16When reallocing pattern, use sizeof(*pattern) not sizeof(int).Todd C. Miller
Fixes a problem on sparc64 where sizeof(int) != sizeof(pointer). Based on a patch from Brian Poole; tedu@ OK
2003-07-16Teach patch how to deal with \ No newline at end of file.Otto Moerbeek
From NetBSD. ok deraadt@
2003-07-16Do not produce garbage if the patch file contains invalid line numbers.Otto Moerbeek
ok millert@ tedu@
2003-07-16mcc -> fcc; from Love Hörnquist Åstrand <lha@it.su.se>Markus Friedl
otherwise the kerberos credentinal is stored in a memory cache in the privileged sshd. ok jabob@, hin@ (some time ago)
2003-07-16clear IUCLC in enter_raw_mode; from rob@pitman.co.za; ok deraadt@, fgs@Markus Friedl
2003-07-16don't exit on multiple -v or -d; ok deraadt@Markus Friedl
2003-07-16Remove unused mkdep scripts.Otto Moerbeek
ok millert@ henning@
2003-07-16Produce correct output if the options include "-o". Remove umaskOtto Moerbeek
juggling that is no longer needed. ok millert@ henning@
2003-07-16anotherHenning Brauer
2003-07-15can't use err after vfork. ok millertTed Unangst
2003-07-15Fix line ranges for unidiffs. Problem noted by otto@Todd C. Miller
2003-07-15stop using libcom_err, it is built into krb5Theo de Raadt
2003-07-15Don't compress a file that already has a known compression prefix.Todd C. Miller
This matches GNU gzip behavior.
2003-07-15- .Ql Li -> .Ql (Ql already provides literal font)Jason McIntyre
- remove a .Pp
2003-07-15.Ql Fl -> .Sq Fl where literal doesn't make sense;Jason McIntyre
2003-07-14range-check numeric arguments (-num, -A num, -B num)Todd C. Miller
2003-07-14Improved (and cleaner) suffix handling code. Now "gunzip foo.tgz"Todd C. Miller
works as expected. mickey@ OK
2003-07-14-t and implied -c due to piped in input is a legal combination of flagsMichael Shalayeff
2003-07-14knfTheo de Raadt
2003-07-14Enable build of unified libkrb5. ok deraadt, todd. Testing by hin, jakob, ↵Magnus Holmberg
David Krause, ...
2003-07-14- .Cm Fl -> .FlJason McIntyre
- fix list width
2003-07-14remove unused Cm;Jason McIntyre
2003-07-14fix the width of lists;Jason McIntyre
2003-07-14- Dv Ta -> Ta DvJason McIntyre
- kill a .br
2003-07-14remove undocumented -V option. would be only useful if openssh is usedMarkus Friedl
as ssh v1 server for ssh.com's ssh v2.
2003-07-14- .Ql -> .Sq where literal doesn't make senseJason McIntyre
- fix the width specifiers in lists/displays - change the for loop into a display for better formatting ok espie@
2003-07-14remove some old groff macros;Jason McIntyre
2003-07-14- escape %{B,D,P} to prevent groff trying to expand themJason McIntyre
- remove some unnecessary .Pp's
2003-07-14.Ic Nm -> .IcJason McIntyre
2003-07-14- fix a displayJason McIntyre
- escape dashes - remove extra bracket
2003-07-14typo in comment. ok henning@Otto Moerbeek
2003-07-14toast this piece of junkTheo de Raadt
2003-07-13fix a list;Jason McIntyre
2003-07-13Cm Ar -> ArJason McIntyre
2003-07-13.Or -> .OpJason McIntyre
2003-07-13Small tweaks from jmc@Todd C. Miller
o correct filename for stdin o fix "the the" o remove width from dash list (unused) o -compact for FILES list