aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* More koshering [ul]case fix, don't use pre-initialized tables at all,Andrey A. Chernov1995-01-172-76/+14
| | | | | | | treat 0xFF as valid character. Notes: svn path=/head/; revision=5702
* Make conv=[lu]case works with localized ctype (8bit)Andrey A. Chernov1995-01-171-2/+12
| | | | Notes: svn path=/head/; revision=5701
* Submitted by: David Muir SharnoffAndreas Schulz1995-01-141-2/+2
| | | | | | | | domainame has referenced getdomainname(2) instead of getdomainname(3). bug report docs/137. Notes: svn path=/head/; revision=5606
* fixed `s' to set dot to last line affected, not the last line inAndrew Moore1995-01-141-1/+4
| | | | | | | a substitution range. Notes: svn path=/head/; revision=5598
* What I think is a more correct fix for the handling of backslashesPaul Richards1995-01-111-3/+3
| | | | | | | inside backquotes. Reversed my previous fix. Notes: svn path=/head/; revision=5507
* Fix a bug with handling backslash escapes inside some quotes.Paul Richards1995-01-091-2/+2
| | | | | | | Should solve our problems with edit-pr. Notes: svn path=/head/; revision=5458
* Don't strip off the last slash in the pathname "/". cp used toBruce Evans1994-12-301-18/+15
| | | | | | | | | | | | | | | | | stat the pathname "" in order to decide that the pathname "/" is a directory. This caused `cp kernel /' to fail if the kernel has the POSIX behaviour of not allowing the pathname "" to be an alias for ".". It presumably also caused `cp /etc/motd /' to fail in the unlikely event that "." is not stat'able. Be more careful about concatenating pathnames: don't check that the pathname fits until prefixes have been discarded (the check was too strict). Print the final pathname in error messages. Terminate the target directory name properly for error messages. Don't add a slash between components if there is already a slash. Notes: svn path=/head/; revision=5292
* Document the arch flag. It has always worked in 2.0.Bruce Evans1994-12-271-1/+3
| | | | | | | | | Document aliases for the flags. The formatting of the section describing the flags is poor. Notes: svn path=/head/; revision=5249
* Obtained from: partly from 1.1.5Bruce Evans1994-12-261-2/+4
| | | | | | | | Convert "" to "." for "cd" and "cd ''". chdir("") is required to fail on POSIX systems. Notes: svn path=/head/; revision=5234
* Obtained from: partly from 386BSD-0.1.2.4Bruce Evans1994-12-261-14/+17
| | | | | | | | | | | | | | | | Fix several bugs involving the obsolescent -d and -t options: -d 0 and -t 0 were ignored -t -600 was a usage error -d 'atoi is not suitable for parsing args' and -t duh were not usage errors Change some error messages to say which call to settimeofday failed. Restore casts of NULL in function calls. Finish conversion to using err() instead of perror(). Notes: svn path=/head/; revision=5233
* Make ls recognize the COLUMNS environmental variable, evenJoerg Wunsch1994-12-181-2/+6
| | | | | | | | | | in cases where it does not run on a terminal. This is important e.g. for commands like env COLUMNS=132 ls -CR | lpr -Psome-wide-printer Notes: svn path=/head/; revision=5158
* src/bin/ed will never build DES encumbered ed again. That is the jobJordan K. Hubbard1994-12-181-7/+1
| | | | | | | for secure/bin/ed ... Notes: svn path=/head/; revision=5155
* Use lstat() instead of stat() for checking if the final source file exists,Bruce Evans1994-12-061-3/+3
| | | | | | | | so that `ln -fs' works when the source is a symlink pointing to a non- existent file. Notes: svn path=/head/; revision=5002
* Re-apply an old patchkit days fix of mine for mempages:David Greenman1994-11-241-1/+2
| | | | | | | | | | | | * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE * -------------------- ----- ---------------------- * CURRENT PATCH LEVEL: 1 00051 * -------------------- ----- ---------------------- * * 14 Aug 92 David Greenman Fixed NEWVM mempages calculation Notes: svn path=/head/; revision=4794
* Add DISTRIBUTION=krb for Kerberos case.Garrett Wollman1994-11-201-1/+2
| | | | Notes: svn path=/head/; revision=4714
* Fix an error to prevent some core dumps from ps.Andreas Schulz1994-11-101-2/+3
| | | | | | | | | | | You can get ps easily to core dump, if you are running a "make depend" on a kernel in one window and a "ps -auxww" in another. The ww will try to give you the full argument list of the command that can now be 64Kb large, but ps expected only 4Kb large arg arrays and doesn't check for overflows. Notes: svn path=/head/; revision=4347
* Add end of line check so mkinit doesn't produce garbage if you have aPaul Traina1994-11-061-2/+2
| | | | | | | | | | | MKINIT line that doesn't have a comment on it (we have at least two). This mkinit program was written by someone who obviously doesn't believe in defensive programming. :-( There's a LOT of work that needs to be done on this thing. :-( :-( :-( Notes: svn path=/head/; revision=4204
* Get this braindead, mongoloid shell look in /stand for pwd if it can'tJordan K. Hubbard1994-11-061-3/+8
| | | | | | | | | | | | | find it in /bin. This is something of a kludge, I know, but consider my limited alternatives: I can't make this an execvp() without making people scream that I introduced a failure point or slowed down pwd, and I can't make it an optional macro since crunch doesn't let you pass arbitrary command-line args to the build of one of its crunch-ees. This is the simplest, if not the nicest looking, solution I could come up with. Notes: svn path=/head/; revision=4192
* Fix group permissions check for group list size > 1Andrey A. Chernov1994-11-051-3/+13
| | | | | | | Pointed by Bruce Notes: svn path=/head/; revision=4171
* Fix root -w case according to manpage (-x & -r cases already accords)Andrey A. Chernov1994-11-051-4/+7
| | | | | | | Pointed by Bruce. Notes: svn path=/head/; revision=4170
* Cosmetique, missing tab/spaces after patchAndrey A. Chernov1994-11-051-6/+6
| | | | Notes: svn path=/head/; revision=4168
* More complex implementation of previos superuser fixAndrey A. Chernov1994-11-051-2/+10
| | | | | | | because rw and x bit treats differently infact Notes: svn path=/head/; revision=4167
* test produce wrong results for superuser, i.e. tellsAndrey A. Chernov1994-11-051-2/+2
| | | | | | | that file is unreadable when it is readable infact. Notes: svn path=/head/; revision=4166
* Nuked #ifdef __386BSD__ since this is not appropriate and no longer definedDavid Greenman1994-11-031-4/+2
| | | | | | | in our 2.6.1 gcc port. Notes: svn path=/head/; revision=4128
* Don't check existence of -lcrypt to decide if DES is employed,Poul-Henning Kamp1994-10-291-2/+2
| | | | | | | instead check that "NOCRYPT" isn't defined. Notes: svn path=/head/; revision=3989
* Use kvm_uread instead of kvm_read to access the upages.David Greenman1994-10-181-2/+3
| | | | Notes: svn path=/head/; revision=3686
* Back out ctype fix, unneded with new ctypeAndrey A. Chernov1994-10-091-2/+2
| | | | Notes: svn path=/head/; revision=3459
* Skip 'cua' 3 chars like 'tty' 3 charsAndrey A. Chernov1994-10-021-2/+3
| | | | Notes: svn path=/head/; revision=3301
* On second thought...back out previous commit.David Greenman1994-10-024-9/+5
| | | | Notes: svn path=/head/; revision=3296
* Include rtprio.hDavid Greenman1994-10-024-5/+9
| | | | Notes: svn path=/head/; revision=3295
* libcompat removedAndrey A. Chernov1994-10-021-3/+3
| | | | Notes: svn path=/head/; revision=3286
* First level of changes for bringing in eBones (kerberos).Geoff Rehmet1994-09-291-5/+13
| | | | | | | | | | | - Get rid of inverse logic (NOKERBEROS and NOEBONES) in src/makefile, and replace with MAKE_KERBEROS and MAKE_EBONES. (Far fewer contortions, and both default to off.) IF YOU WANT KERBEROS, YOU HAVE TO EXPLICITLY DEFINE ONE OF THESE. - Make Makefiles kerberos-aware. Notes: svn path=/head/; revision=3197
* Actually implement this correctly.Garrett Wollman1994-09-261-5/+2
| | | | Notes: svn path=/head/; revision=3107
* Added $Id$David Greenman1994-09-24259-1/+382
| | | | Notes: svn path=/head/; revision=3044
* Remove bogus cast that was introduced in the previous commit.Bruce Evans1994-09-211-1/+1
| | | | Notes: svn path=/head/; revision=2959
* Remove redundant declarations that were added in the previous commit.Bruce Evans1994-09-212-6/+1
| | | | Notes: svn path=/head/; revision=2958
* Make ls ctype-awareAndrey A. Chernov1994-09-211-1/+1
| | | | Notes: svn path=/head/; revision=2955
* fix ln to accept -f again. Thanks Bruce. Seems that Joe Grosch isn'tPoul-Henning Kamp1994-09-201-1/+1
| | | | | | | | quite as safe as I thought. I will have to look much closer on his patches. Damn. Notes: svn path=/head/; revision=2928
* Applied patch to make -Wall and -Dlint shut up.Poul-Henning Kamp1994-09-201-2/+4
| | | | | | | | Reviewed by: phk Submitted by: Josef Grosch <joeg@gagme.wwa.com> Notes: svn path=/head/; revision=2927
* The former patch to sync.c was short-lived. Bruce pointed out thatPoul-Henning Kamp1994-09-201-2/+3
| | | | | | | "Now it is has 2 portability bugs, which is a lot for 5 lines of working code" Notes: svn path=/head/; revision=2925
* /home/phk/jgPoul-Henning Kamp1994-09-201-2/+2
| | | | Notes: svn path=/head/; revision=2924
* Applied patch to make -Wall and -Dlint shut up.Poul-Henning Kamp1994-09-205-11/+17
| | | | | | | | Reviewed by: phk Submitted by: Josef Grosch <joeg@gagme.wwa.com> Notes: svn path=/head/; revision=2923
* Add support for '-k' option to print file allocation space in 'K' instead ofPaul Traina1994-09-192-2/+11
| | | | | | | | | | system blocks. This is semi-original code, not the same way this crufty option was handled in FreeBSD 1.x. Notes: svn path=/head/; revision=2889
* Added domainname.Garrett Wollman1994-09-181-3/+5
| | | | Notes: svn path=/head/; revision=2864
* A new domainname(1) command based on hostname(1), this time with a correctGarrett Wollman1994-09-183-0/+146
| | | | | | | manual page. Notes: svn path=/head/; revision=2862
* With '!' being made into a keyword (yech!), case cases didn't work properly.Sean Eric Fagan1994-09-141-11/+13
| | | | | | | | | | | | | This should fix it (passed my test cases). Originally discovered with perl's Configure (well, in FreeBSD, I don't know how the NetBSD folks discovered it). Reviewed by: sef Submitted by: jtc@cygnus.com Obtained from: NetBSD Notes: svn path=/head/; revision=2760
* Make get_int() think that "" (null) has the integer value 0.Geoff Rehmet1994-09-111-0/+5
| | | | | | | | | (Which is the same behaviour as in 1.x) The install blows up without this. Reviewed by: rgrimes Notes: svn path=/head/; revision=2675
* - handle signs on integers properly,Geoff Rehmet1994-09-114-2/+28
| | | | | | | | | | | | | - make sure error messages for bad integers are moderately sensible - handle test ! "abc" -o "abc" (This should evaluate to true) (and similar cases) ie: and/or operator test added to POSIX special case processing. - more test cases added. Based on: Work done on 1.x's test(1) by Andrew Moore and Adam David. Notes: svn path=/head/; revision=2664
* [ From Dave Tweten ]Jordan K. Hubbard1994-09-081-2/+4
| | | | | | | | | | | | | | | | | | | | POSIX.2 looks pretty unequivocal to me, and it agrees with you. Under the explanation of the "-p" option, it says, "Each dir operand that names an existing directory shall be ignored without error." Under the explanation of exit status zero, it says, "All the specified directories were created successfully, or the-p option was specified and all the specified directories now exist." Seems to me POSIX requires exactly the behavior you want. [ And I've made the change, which is also now compatible with 1.x - jkh ] Reviewed by: jkh Submitted by: jkh/tweten Notes: svn path=/head/; revision=2594
* Explicitly include <sys/types.h> before including <regex.h>. This isBruce Evans1994-09-051-0/+1
| | | | | | | | apparently required by POSIX. It will be required in practice when the bogus inclusion of <sys/types.h> is removed from <stdio.h>. Notes: svn path=/head/; revision=2502