Commit Graph

20557 Commits

Author SHA1 Message Date
Justin T. Gibbs
cbc7db3bf7 CFLAGS += -I. so that building in an obj directory works. 1997-04-03 05:56:00 +00:00
David Greenman
ca98b82c8d Reorganize elements of the inpcb struct to take better advantage of
cache lines. Removed the struct ip proto since only a couple of chars
were actually being used in it. Changed the order of compares in the
PCB hash lookup to take advantage of partial cache line fills (on PPro).

Discussed-with: wollman
1997-04-03 05:14:45 +00:00
Mike Pritchard
5d00c0a499 Honor the nouser/nogroup flag when determing if NULL should
be returned if a cached uid/gid does not exist in the password
file.
1997-04-03 01:51:34 +00:00
Masafumi Max NAKANE
353fe48bab Typo.
Submitted by:	Mihoko TANAKA <mihoko@pa.yokogawa.co.jp>
1997-04-03 01:07:38 +00:00
John-Mark Gurney
0548bf4d76 arg... add back the "stray" `-' (it is used by indent) 1997-04-03 00:36:26 +00:00
Paul Traina
ae56d56bdf Base work to make gdbserver work with FreeBSD 1997-04-03 00:29:25 +00:00
Peter Wemm
8959b2546d Update to include details about the changes to setuid/setgid. 1997-04-02 17:24:16 +00:00
Andrey A. Chernov
0017e6c0ba Back out csu fix, because it was just fixed differently 1997-04-02 17:10:16 +00:00
Peter Wemm
b79c6a8603 Don't incorrectly set P_SUGID in setre[ug]id() for no reason, as noticed
by bde.
Don't return EPERM in setre[ug]id() just because the caller passes in
the current effective id in the second arg (ie: no change), as suggested
by ache.
1997-04-02 17:05:49 +00:00
Poul-Henning Kamp
71044fa7ab Allow "modern" syntax:
route add -net 192.168.64.0/20 bla bla bla
1997-04-02 17:05:30 +00:00
Andrey A. Chernov
7afe3a8a33 cd ${.CURDIR} before installing, since no files in the obj directory 1997-04-02 16:56:56 +00:00
Poul-Henning Kamp
8fd0ef3952 unifdef CCITT, ISO & CRUFT. 1997-04-02 16:52:45 +00:00
John Polstra
bb789b9ea2 Fix an error in the previous revision that caused make world breakage. 1997-04-02 16:49:18 +00:00
Andrey A. Chernov
05266ef44d For csu/i386 add "all" before "beforeinstall", because "beforeinstall"
wants to install "all" targets which not exist at this stage
1997-04-02 16:44:06 +00:00
Wolfram Schneider
29a932b562 Variable name typo.
Reviewed by: Guy Helmer <ghelmer@cs.iastate.edu
Submitted by:	Paul Sandys <myj@nyct.net>
1997-04-02 14:34:57 +00:00
Jordan K. Hubbard
6724ac5c14 Sync up to current state of development. 1997-04-02 12:13:35 +00:00
Jordan K. Hubbard
45dbe89080 Sync up to current state of development. 1997-04-02 12:07:39 +00:00
Doug Rabson
b91ea324e7 Make "-o noxxx" work properly, allowing the user to clean e.g. the resvport
flag (which is now set by default).
1997-04-02 11:30:44 +00:00
John-Mark Gurney
d10ef76b70 remove a stray `-' 1997-04-02 11:26:59 +00:00
John-Mark Gurney
47a5f49956 minor stylistic change (NULL to '\0')
Submitted-by: Philippe Charnier <charnier@xp11.frmug.org>

Closes PR#2999
1997-04-02 10:44:12 +00:00
John-Mark Gurney
75ce49d645 add comment about the brokeness of some termcap entires that require a
`%' to be just that...

make tput just warn about an unknown type modifier instead of breaking...
this allows you to `tput init' on a tek4107...
1997-04-02 10:27:27 +00:00
John-Mark Gurney
39746e4630 make it so that chat doesn't fail when it can't get terminal params..
this allows it to work on non-tty input...  also don't warn when this
happens as it could get noisy...

Silence is Acceptance
1997-04-02 09:55:26 +00:00
John-Mark Gurney
df3cc9399c uncomment CD_Q_BCD_TRACKS flag, add xref to scsi(4) 1997-04-02 09:41:16 +00:00
John-Mark Gurney
21a69f7c65 add a cd quirk flag CD_Q_BCD_TRACKS, that will convert bcd2bin the track
id's from broken scsi cdrom drives like my Chinon... plus update the quirk
entry for it :)

Closes my own PR#2423
1997-04-02 09:05:43 +00:00
Mike Pritchard
1595890a1f The user_from_{uid,gid} routines would return garbage if the
uid/gid in question was in the cache, but did not exist
in the password file.  This causes the -nouser and -nogroup
options to find(1) to only print the first file owned by
an unknown user/group in some cases.
1997-04-02 06:20:04 +00:00
Jordan K. Hubbard
dbf299abbe Fix spelling error.
Submitted by:	Hiroyuki HANAI <hanai@astec.co.jp>
1997-04-02 06:03:52 +00:00
Mike Pritchard
134970f671 Grammar police. 1997-04-02 05:52:22 +00:00
Hiroyuki Hanai
3e9f70a897 Catch up with the original. 1997-04-02 05:42:39 +00:00
Andrey A. Chernov
28804f92db Add Id
Reduce space for error bufer from 512 to 128: there is no such long strings
can be returned from strerror()
1997-04-02 04:24:39 +00:00
Andrey A. Chernov
81d9597ce7 Code space optimization in uu_lockerr() 1997-04-02 03:53:49 +00:00
Andrey A. Chernov
2875419215 Remove unused USE_PERROR define and syslog.h include
Use snprintf instead of sprintf to avoid buffer overflows
Use snprintf in uu_lockerr instead of lots of hardcoded constants
and not null-terminated strncpy
Return "" for OK and "device in use" for INUSE, it allows simple
strcpy(buf, uu_lockerr(retcode)) without testing for special OK
case (NULL was there) and obtaining meaningful result for INUSE
("" was there) without special testing for it too.
1997-04-02 03:38:29 +00:00
Steve Passe
938401213d PAL support: magic numbers moved into format_params structure.
Revised AFC interface.
Fixed DMA_PROG_ALLOC size misdefinition.

Submitted by:	richard@cogsci.ed.ac.uk (Richard Tobin)
1997-04-02 01:48:39 +00:00
John Polstra
6f78fb0cc1 Correct the most glaring errors. I have a feeling there are some
left.
1997-04-02 01:42:07 +00:00
Mike Pritchard
94d6fcba9b Remove some garbage text. 1997-04-02 00:09:14 +00:00
Mike Pritchard
1a8d9bc1f7 Fix several problems with mkdir:
1)  Fix mkdir -p to exit with the proper exit status and issue an error
    message if it was unable to create all of the specified directories
    and they did not previously exist.  POSIX says:

    The mkdir utility shall exit with one of the following values:

    0  All the specified directories were created successfully or the
       -p option was specified and all the specified directories now
       exist.

    E.g.

    % mkdir -p /var/mkdir
    mkdir: /var/mkdir: Permission denied

    % touch /tmp/file
    % mkdir -p /tmp/file/dir
    mkdir: /tmp/file: Not a directory

    Previously the above examples would exit with a zero exit status
    and no error message.  Something like the following run as a
    normal user will still not produce an error:

    % id
    uid=629(mpp) gid=629(mpp)....
    % mkdir -p /usr/local/etc
    % ls -ld /usr/local/etc
    drwxr-xr-x  4 bin  bin  512 Dec 26 14:55 /usr/local/etc/

2)  Cleaned up the mode handling to be more efficient when multiple
    directories are being created.

3) Fixed a problem where directories could be created with the wrong mode
   if the the -p option was specified and the build() routine returned
   and error.  It would leave the umask set incorrectly at this point.

4) Removed an unused variable.

Closes PR# 2304.
1997-04-01 23:46:22 +00:00
Andrey A. Chernov
72daaae383 Link chown with lchown 1997-04-01 23:07:55 +00:00
Andrey A. Chernov
f7000016df Add issetugid.2 to MAN2 list 1997-04-01 22:57:56 +00:00
John Birrell
38d7083fcf Fix the return value. Oops. 1997-04-01 22:52:43 +00:00
John Birrell
1cec64c4d6 Fix indentations. Sigh. 1997-04-01 22:51:48 +00:00
John Birrell
745a12fc30 Make error checking less zealous to handle devices like /dev/null
which don't provide a non-blocking interface.

This is a short term "fix" which changes a half-lose to a half-win.
The thread that accesses a device that does not provide a non-blocking
interface will block for its time slice.

A medium term solution would be to use rfork. A long-term solution
would be some sort of kernel thread/SMP implementation.
1997-04-01 22:49:58 +00:00
John Birrell
e710f8d85b Add parentheses to make blocking mode work. 1997-04-01 22:44:18 +00:00
Mike Pritchard
7966553397 Be more specific as to which flags may not be turned off when the
system is running in secure mode.

Obtained from: NetBSD PR# 3299
1997-04-01 20:41:04 +00:00
Joerg Wunsch
758a95b7aa Use MAXHOSTNAMELEN, as opposed to an arbitrary number, and ensure
correct termination if it overflows.

Closes PR # misc/2982.

Submitted by:	Drew Derbyshire <ahd@kew.com>
1997-04-01 20:39:59 +00:00
Mike Pritchard
b5d3fbf904 Add od(4). Closes PR# 3170.
Submitted by:	Shunsuke Akiyama <akiyama@jp.freebsd.org>
1997-04-01 19:52:37 +00:00
Joerg Wunsch
e49784d15d Add an entry for the newer Philips CDD26xx family CD-R drives. They
come out with PHILIPS as the vendor string, as opposed to IMS for the
older ones.

Submitted by:	"Brian N. Handy" <handy@sag.space.lockheed.com>
1997-04-01 19:28:03 +00:00
Mike Pritchard
5a4db6eb6c Grammar fix. 1997-04-01 19:09:20 +00:00
Mike Pritchard
02dd678d7e Xref the new issetugid(2) man page where appropriate.
Also add additional set*id(2) xrefs where appropriate.
1997-04-01 18:58:38 +00:00
Mike Pritchard
625fe116e7 Don't xref setregid(2) twice - one of them should be setreuid(2). 1997-04-01 18:50:56 +00:00
Mike Pritchard
51aa564f75 Fix one very minor mdoc problem. Gentle enough, Peter? :-) 1997-04-01 18:45:57 +00:00
Mike Pritchard
5eefb7a4ee Remove a doubled word. Closes PR# 3163.
Submitted by:	 Kazuo Horikawa <horikawa@jp.freebsd.org>
1997-04-01 18:28:25 +00:00