summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2003-07-22More cleanup.Otto Moerbeek
ok millert@ tedu@
2003-07-22switch to our own diff/diff3 (sdiff goes bye bye)Theo de Raadt
2003-07-22- use :L variable modifier with ELF_TOOLCHAIN variableBrad Smith
- change 2 instances of the check from != "yes" to == "no" ok deraadt@
2003-07-22Add missing terminator to long options list.Todd C. Miller
2003-07-22remove (already disabled) KRB4/AFS support, re-enable -k in ssh(1);Markus Friedl
test+ok henning@
2003-07-22Fixed the "dot alone on a line" bug.Todd C. Miller
2003-07-22Bring FILES section up to date.Todd C. Miller
2003-07-22Implement the -L and -T options from GNU diff.Todd C. Miller
2003-07-22Historically, when comparing two directories in -e mode, BSD diffTodd C. Miller
printed a header that turned the output into an actual script that called ed(1) to make the changes. This conflicts with POSIX so the header has been removed and the standard diff header is used instead.
2003-07-22Don't print lines consisting solely of a dot ('.') in -e mode sinceTodd C. Miller
that will confuse ed(1). POSIX says "one way to fix this bug is to output two periods whenever a lone period is needed, then terminate the append command with a period, and then use the substitute command to convert the two periods into one period." This is exactly what I have done.
2003-07-22Install diff3.ksh with the correct name; noticed by TheoTodd C. Miller
2003-07-21Historically, the "Only in" messages produced in dir modeTodd C. Miller
were not printed when the output format was -e (ed) since this prevented the output from being used as an ed script. However, POSIX specifies that this message shall always be printed regardless of the output format (this is also what GNU diff does). Also do the same with the "Common subdirectory" message which POSIX lists as optional.
2003-07-21Add STANDARDS sectionTodd C. Miller
2003-07-21Don't print a trailing '/' in foo when printing "Only in foo: bar"Todd C. Miller
2003-07-21Fix printing of status when not in -l mode which was broken when theTodd C. Miller
-l support was added.
2003-07-21a little KNFHenning Brauer
2003-07-21POSIX-compliant output when there are two paths w/ the same name butTodd C. Miller
one is a file and the other is a directory in -r mode (cosmetic).
2003-07-21Back out invalid line number fix. It core dumps in some cases. Problem found byOtto Moerbeek
marc@. ok henning@
2003-07-21Updated license from nvi-1.81.5 since we will be pulling in patches from it.Todd C. Miller
2003-07-21Expand change records array as needed; passes Otto's new regression test.Todd C. Miller
2003-07-21fix headerTheo de Raadt
2003-07-21remove a bit more junkTheo de Raadt
2003-07-21knfTheo de Raadt
2003-07-21knf and other cleanup; ok ottoTheo de Raadt
2003-07-21Merge back some changes from skimo's tree, fixes endless recursionsDaniel Hartmeier
in vs_paint() for some option combinations. ok millert@
2003-07-20After some discussion on icb it seems a do {} while is what we wantTodd C. Miller
after all since there's no need to check an invariant the first time through. I've fixed the loop invariants (we need to take special care with the "j == fg->patternLen" case) and hopefully made things a tad bit clearer. tedu@ OK
2003-07-20Close PR 3358 by changing the loop from do {} while -> for; tdeval@ OKTodd C. Miller
2003-07-20document exit valuesTodd C. Miller
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@