Commit Graph

20695 Commits

Author SHA1 Message Date
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
Mike Pritchard
13bf59efdc Fix a minor grammar problem. 1997-04-01 18:06:33 +00:00
Mike Pritchard
698fdb70ff MLINK uu_lockerr(3). 1997-04-01 17:44:58 +00:00
Mike Pritchard
b5ebf1f5cd Mdoc police. 1997-04-01 17:44:31 +00:00
Guido van Rooij
d5e1fb3173 Make mount_nfs use reserved ports by default.. Mounts already use
a reserved port, so why not the nfs rpc's themselves?
With user allowed mounts, this perhaps needs a closer look, but
on the other hand, a user could already specify the flag.
If normal users should not be able to use resserved ports, the kernel
should check for the flag at mount time.
1997-04-01 17:20:17 +00:00
Bruce Evans
12f2987754 Removed a wrong comment of mine.
Removed unused #includes.
1997-04-01 16:22:31 +00:00
Bruce Evans
cc289dff53 Fixed gratuitous ANSIisms.
Removed unused declarations.
1997-04-01 16:13:31 +00:00
Bruce Evans
be98721964 Fixed gratuitous ANSIisms.
Removed trailing newline from panic messages.
1997-04-01 15:22:59 +00:00
Bruce Evans
ada28e77e6 Use __i386__ instead of i386 in ifdefs.
Don't compile unused (debugging?) functions.
1997-04-01 15:10:38 +00:00
Bruce Evans
b9478d127e Fixed gratuitous ANSIisms. 1997-04-01 14:31:06 +00:00
Bruce Evans
1f45d4d4eb Don't fail when the vfs.nfs.nfs_privport sysctl doesn't exist
(presumably because the kernel is old).  Moved the declaration of a
variable realated to this sysctl outside of an unrelated ifdef.

Not fixed:
- this sysctl is badly named (nfs occurs twice).
- it's silly to have for FreeBSD in FreeBSD code, especially when
  only half of the FreeBSD-dependent code is ifdefed.
1997-04-01 14:15:30 +00:00
Bruce Evans
67fd3b9895 Simplified install rule. 1997-04-01 13:53:16 +00:00
Bruce Evans
0f1adf65ab Use OID_AUTO instead of magic number for the Lite2 sysctl debug.busyprt.
Removed declaration of vfs_unmountroot() again.

Staticized vgonel().
1997-04-01 13:05:34 +00:00