Commit Graph

85 Commits

Author SHA1 Message Date
Andreas Schulz
fa49dc9cf0 Fix an error to prevent some core dumps from ps.
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.
1994-11-10 23:25:12 +00:00
Paul Traina
a0334cef15 Add end of line check so mkinit doesn't produce garbage if you have a
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. :-( :-( :-(
1994-11-06 06:27:04 +00:00
Jordan K. Hubbard
beeac5cded Get this braindead, mongoloid shell look in /stand for pwd if it can't
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.
1994-11-06 01:29:26 +00:00
Andrey A. Chernov
5b515dcb38 Fix group permissions check for group list size > 1
Pointed by Bruce
1994-11-05 20:48:06 +00:00
Andrey A. Chernov
20662469d5 Fix root -w case according to manpage (-x & -r cases already accords)
Pointed by Bruce.
1994-11-05 20:24:49 +00:00
Andrey A. Chernov
01bb3d8e18 Cosmetique, missing tab/spaces after patch 1994-11-05 17:31:23 +00:00
Andrey A. Chernov
ea8bd6e348 More complex implementation of previos superuser fix
because rw and x bit treats differently infact
1994-11-05 17:28:03 +00:00
Andrey A. Chernov
3b0beab69c test produce wrong results for superuser, i.e. tells
that file is unreadable when it is readable infact.
1994-11-05 17:07:14 +00:00
David Greenman
efaf4c8649 Nuked #ifdef __386BSD__ since this is not appropriate and no longer defined
in our 2.6.1 gcc port.
1994-11-03 21:46:55 +00:00
Poul-Henning Kamp
e615020eae Don't check existence of -lcrypt to decide if DES is employed,
instead check that "NOCRYPT" isn't defined.
1994-10-29 10:13:34 +00:00
David Greenman
0ec663d53a Use kvm_uread instead of kvm_read to access the upages. 1994-10-18 04:27:46 +00:00
Andrey A. Chernov
c31c20bb26 Back out ctype fix, unneded with new ctype 1994-10-09 15:25:23 +00:00
Andrey A. Chernov
efc18e2ca9 Skip 'cua' 3 chars like 'tty' 3 chars 1994-10-02 14:11:32 +00:00
David Greenman
8b6f5f5f9f On second thought...back out previous commit. 1994-10-02 08:33:31 +00:00
David Greenman
793ced0e91 Include rtprio.h 1994-10-02 08:19:13 +00:00
Andrey A. Chernov
c7eb1baf5d libcompat removed 1994-10-02 01:36:03 +00:00
Geoff Rehmet
c368d11dd2 First level of changes for bringing in eBones (kerberos).
- 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.
1994-09-29 13:06:54 +00:00
Garrett Wollman
634b753d7d Actually implement this correctly. 1994-09-26 02:14:27 +00:00
David Greenman
89730b290a Added $Id$ 1994-09-24 02:59:15 +00:00
Bruce Evans
0e4885ff09 Remove bogus cast that was introduced in the previous commit. 1994-09-21 22:34:38 +00:00
Bruce Evans
9fb420314e Remove redundant declarations that were added in the previous commit. 1994-09-21 22:31:01 +00:00
Andrey A. Chernov
24891fb1df Make ls ctype-aware 1994-09-21 20:23:07 +00:00
Poul-Henning Kamp
c4278e8b60 fix ln to accept -f again. Thanks Bruce. Seems that Joe Grosch isn't
quite as safe as I thought.  I will have to look much closer on his
patches.  Damn.
1994-09-20 07:24:51 +00:00
Poul-Henning Kamp
67a3d3a8d3 Applied patch to make -Wall and -Dlint shut up.
Reviewed by:	phk
Submitted by:	Josef Grosch <joeg@gagme.wwa.com>
1994-09-20 07:18:04 +00:00
Poul-Henning Kamp
9e6f6868ff The former patch to sync.c was short-lived. Bruce pointed out that
"Now it is has 2 portability bugs, which is a lot for 5 lines of working code"
1994-09-20 07:02:35 +00:00
Poul-Henning Kamp
3a15523260 /home/phk/jg 1994-09-20 06:28:16 +00:00
Poul-Henning Kamp
d4daf998ed Applied patch to make -Wall and -Dlint shut up.
Reviewed by:	phk
Submitted by:	Josef Grosch <joeg@gagme.wwa.com>
1994-09-20 06:24:56 +00:00
Paul Traina
475727a09f Add support for '-k' option to print file allocation space in 'K' instead of
system blocks.

This is semi-original code, not the same way this crufty option was handled
in FreeBSD 1.x.
1994-09-19 07:49:56 +00:00
Garrett Wollman
63c72c78d2 Added domainname. 1994-09-18 21:25:26 +00:00
Garrett Wollman
6f2d50c0d0 A new domainname(1) command based on hostname(1), this time with a correct
manual page.
1994-09-18 21:23:37 +00:00
Sean Eric Fagan
650488feaa With '!' being made into a keyword (yech!), case cases didn't work properly.
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
1994-09-14 17:41:32 +00:00
Geoff Rehmet
282d727280 Make get_int() think that "" (null) has the integer value 0.
(Which is the same behaviour as in 1.x)
The install blows up without this.
Reviewed by:	rgrimes
1994-09-11 21:30:09 +00:00
Geoff Rehmet
5fafa20681 - handle signs on integers properly,
- 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.
1994-09-11 13:57:31 +00:00
Jordan K. Hubbard
d653487a46 [ From Dave Tweten ]
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
1994-09-08 21:34:33 +00:00
Bruce Evans
395b07d1df Explicitly include <sys/types.h> before including <regex.h>. This is
apparently required by POSIX.  It will be required in practice when
the bogus inclusion of <sys/types.h> is removed from <stdio.h>.
1994-09-05 13:03:50 +00:00
David Greenman
a837235a2e Added rtprio option/field.
Submitted by:	Henrik Vestergaard Draboel
1994-09-01 11:28:45 +00:00
Bruce Evans
2577a8acef Add dependencies on libraries to DPADD. Someday this should be done
automagically.  -lfoo has to be right to work, but ${LIBFO0} is too
easy to forget or misspell; nothing checks it and it should be
different for shared libraries.
1994-08-28 18:49:06 +00:00
Andreas Schulz
a8c32ea5a1 Reviewed by:
Submitted by:
Added the FTS_NOCHDIR flag to the fts-open call. This is needed, so that
the fts don't change the current directory for rm and subsequent calls
to rmdir with relative pathnames don't fail.
Pulled over the bugfix in 1.1.5.
1994-08-28 18:34:50 +00:00
Andreas Schulz
96d6d564ce Reviewed by:
Submitted by:
Oops, overlooked another typo in this man page.
1994-08-28 17:19:58 +00:00
Andreas Schulz
7e91840c17 Reviewed by:
Submitted by:
Correct two typos in the format string usages.
1994-08-28 16:52:46 +00:00
Bruce Evans
104915fbb9 Touch init.c after making it in case mkinit refused to touch it after not
changing it.  mkinit's attempted smartness about timestamps is mismatched
with the makefile.  init.o is compiled _twice_ the first time it is made...
1994-08-21 10:44:51 +00:00
David Greenman
fa074287a4 Got rid of stupid warning message. 1994-08-18 14:35:23 +00:00
David Greenman
d9346a803b Got rid of extra space between args and (command). 1994-08-18 14:30:53 +00:00
David Greenman
9d4081ee4b The last commit was bogus...the putenv doesn't affect the parent process,
so the BLOCKSIZE doesn't need to be preserved.
Also initialized the flags variables, and used 1k instead of 1024 for
BLOCKSIZE.
1994-08-12 10:23:49 +00:00
David Greenman
ebf93438bf Implemented the -k flag more properly...don't destroy the user's setting
of the BLOCKSIZE environment variable.
1994-08-12 07:26:52 +00:00
Garrett Wollman
7be58aba8e Make `ps' set-uid root so that it can read the same set of arguments
that old `ps'es did.  I'm not too thrilled about this, but I'm not
enough of an FS person to hack procfs so that /proc/xxx/mem is readable
by members of group `kmem'.  If this is done, then `ps' can go back to
being set-gid kmem.
1994-08-11 20:06:55 +00:00
Garrett Wollman
7f0eabfd0a Gimme back my `-k' option!
Also document `-t' option in the usage message.
1994-08-10 19:21:07 +00:00
Jordan K. Hubbard
8a7b6c16fa WHOOPS! Put that back! Sorry, wrong Makefile.inc!
[slinks away embarassed].  It's NOSHARED again ("Gee, sorry about that
honey!  I could have *sworn* the safety was on!").

Reviewed by:
Submitted by:	jkh
1994-08-08 19:30:03 +00:00
Jordan K. Hubbard
fe7d760f52 Removed NOSHARED. "It's safe now, honey."
Reviewed by:
Submitted by:	jkh
1994-08-08 19:28:26 +00:00
Jordan K. Hubbard
db6ec19933 The handling of err.h and const.h were in a real tangle and didn't
work if you didn't explicitly depend first; this should both simplify
things and make it work in all circumstances.
Reviewed by:
Submitted by:
1994-08-07 21:28:27 +00:00