Commit Graph

2476 Commits

Author SHA1 Message Date
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
Brian Somers
687d0cdeb3 Remove the syslog stuff, and allow various return values
in uu_lock().  Add uu_lockerr() for turning the results of
uu_lock into something printable.  Remove bogus section in man page
about race conditions allowing both processes to get the lock.
Include libutil.h and use uu_lock() correctly  where it should.

Suggested by:	ache@freebsd.org
1997-03-31 22:51:00 +00:00
Peter Wemm
2e08522b02 Activate the -h flag which tells chown/chgrp to work on the symlink itself
using lchown().  Most of the code was already here, the option was
recognised but ignored for SYSV/POSIX.2(?) compatability.
1997-03-31 13:03:49 +00:00
Warner Losh
6c3f552a31 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
Brian Somers
568b59b9df Move uucplock into libutil and create a manual page. 1997-03-30 12:12:20 +00:00
Bruce Evans
c263a0048d Removed `#define KERNEL'. This was a hack-around for nfs.h being broken
in the Lite2 merge to not export some nfs constants.  It started causing
warnings when I added a kernel-only #define for DIRBLKSIZ.

Removed `#define NFS'.  This was an old, bad interface for telling
<sys/mount.h> to export nfs stuff.
1997-03-29 12:50:41 +00:00
Peter Wemm
6359933214 Allow the samplerate (in DPI) to be set on the command line, the rest of
the code appears to support it.
1997-03-29 12:10:26 +00:00
Peter Wemm
0f459420f8 Reserve a placeholder for 4 SMP ipi interrupts in the same way that
it's done for pci.  This is so that systat and vmstat can get at the
interrupt counts for the Inter-Processor Interrupts when running a smp
kernel.  This doesn't affect the normal kernel, but makes life easier for
the smp people who don't have to track two versions of config.
1997-03-29 12:04:51 +00:00
Bruce Evans
958a83b970 Use new mount args (mount "ufs" instead of MOUNT_UFS).
vnconfig doesn't seem to be in Lite2, although dev/vn is.  The Lite2
merge in userland has converted all mount calls except this one and
one for devfs in init, so we can drop support for old mount args soon.

Vnconfig probably shouldn't support mounting - it only supports ufs.
1997-03-29 11:01:54 +00:00
Jordan K. Hubbard
8378bbaded Catch this puppy up to RELENG_2_2 1997-03-29 06:44:57 +00:00
Warner Losh
8d64695c7c compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 03:33:12 +00:00
Andrey A. Chernov
659d2a2071 Remove support for "port none" and "port auto", it gains nothing,
non-standard and not used. "port auto" is equal to "port?" or missing "port"
keyword now. "port none" is really probe routine task (return -1 for
no ports).
1997-03-28 00:56:11 +00:00
Guido van Rooij
394da4c167 Add code that will reject nfs requests in teh kernel from nonprivileged
ports. This option will be automatically set/cleraed when mount is run
without/with the -n option.
Reviewed by:	Doug Rabson
1997-03-27 20:01:07 +00:00
Jordan K. Hubbard
136cfc5125 YAMF22 1997-03-27 01:44:11 +00:00
Jordan K. Hubbard
82ac247a53 Sync with 2.2 1997-03-27 01:05:17 +00:00
Andrey A. Chernov
1d29927ce6 Add #define's for port "none" and "auto"
Now port ommiting is equal to port "none" not to port 0
1997-03-26 15:19:55 +00:00
Peter Wemm
95cddebbe5 - update MNT_* flags to match lite2 properly. get rid of old #if 0 flags
that are gone, add new missing ones.
- don't dereference kernel relative pointers in user space for() loops, it
doesn't work real well.
1997-03-25 15:48:14 +00:00
Jordan K. Hubbard
38abfbea7d YAMF22 1997-03-25 03:12:59 +00:00
Andrey A. Chernov
aab4ac4dad Print negative values only for two cases used
in config for iobase: -1 (auto) and -2 (none)
Other values are printed as big port numbers
1997-03-25 02:54:34 +00:00
Andrey A. Chernov
3be1497f41 Fix iobase printing for autodetect and none cases
(negative numbers was printed as very big ports)
1997-03-25 02:35:12 +00:00
Andrey A. Chernov
6a95b13d8d Use srandomdev() to initialize RNG 1997-03-24 16:01:46 +00:00
Andrey A. Chernov
a200d18a76 Initialize RNG only once
Use srandomdev() now
1997-03-24 15:09:41 +00:00
Warner Losh
94cf2e751d Fix small race window when creating portal socket.
Obtained from: OpenBSD
1997-03-24 05:53:12 +00:00
Joerg Wunsch
3f5323eb71 Make the argument handling for select() less bogus. Also, move the
amq service from UDP to TCP for better reliability.
1997-03-22 23:12:08 +00:00
Jordan K. Hubbard
4f09c5ae25 YAMF22 1997-03-22 15:20:51 +00:00
Jordan K. Hubbard
63cf099d1c Add Iceland. 1997-03-21 05:18:20 +00:00
David Nugent
dc7eb240ea Fix possible (not stack) overflow from -d <dir> commandline option. 1997-03-20 03:35:06 +00:00
Jordan K. Hubbard
ee49f49829 YAMF22 1997-03-19 10:09:46 +00:00
Jordan K. Hubbard
eefc5acdc5 Some of my pending merge changes, Paul Traina's more flexible config
file loading code.
Submitted by:	pst
1997-03-19 10:09:28 +00:00
Bruce Evans
ac89160a93 Removed old bogus prerequisite <sys/select.h>. Cleaned up #include mess. 1997-03-19 04:44:07 +00:00
Bruce Evans
3ce29386aa Fixed missing function types in synopsis. 1997-03-19 00:32:42 +00:00
Mike Pritchard
862e2d600b Be consistent with the handbook and the release notes and specify all
mailing list addresses as freebsd-*@FreeBSD.org.

Pointed out by: Kenneth R. Westback <krw@tcn.net>
1997-03-18 07:02:32 +00:00
Andrey A. Chernov
7b50678a36 Convert srandom() arg cast to Lite2 style 1997-03-17 14:47:56 +00:00
Mike Pritchard
4b0eb76dc9 Typo police.
Partially obtained from: NetBSD PR# 3333
1997-03-16 07:12:20 +00:00
Jordan K. Hubbard
c67ba61175 YAMF22 1997-03-15 18:01:45 +00:00
Jordan K. Hubbard
fd27ec2d05 Increase the size of the email address field.
Requested-By: joerg
1997-03-15 16:24:32 +00:00
Peter Wemm
9efe2eccdd Tone down the paranoia a bit in from the previous commit. setusercontext()
automatically Does The Right Thing when lc == NULL, which just happens to
be what the extra code in cron was trying to do.  Simplify.
1997-03-14 14:45:30 +00:00
Peter Wemm
39da5de262 Activate HASSETUSERCONTEXT to set resource limits while delivering
to pipes in .forward files, but with a slight bugfix to the code.
1997-03-14 14:26:35 +00:00
Peter Wemm
c00d650f25 For some reason, the old login class code didn't seem to be working here.
I suspect it was because the child exec code's parent was doing the
initial lookups, then forking, then doing other things (possibly trashing
the static data in the getpw*() buffer), then attempting to dereference
*pwd and *lc.  Also, no error checking appeared to be done - I've allowed
it to fall back to the old "become user" code on critical failure rather than
risk running a user's cron jobs as root.
1997-03-14 13:48:04 +00:00
Jordan K. Hubbard
6ebe9a26f2 o Remove obsolete references in XFree86 menu
o Add version information to registration (suggested by David)
1997-03-14 05:17:12 +00:00
Joerg Wunsch
d086327d14 Save and restore the state of the variable Initialized inside die().
Otherwise, the shutdown message will print out with 15 NUL bytes in
front, due to a missing timestamp.
1997-03-14 01:27:02 +00:00
Brian Somers
9163ee5e9d Oops - forgot to document the new -HUP action.
This should make 2.2 if the HUP stuff (earlier today) does.
1997-03-13 21:39:41 +00:00
Brian Somers
6e4959f072 Closes pr 2711
Fix -background option.  Parent returns after the line is established
(or not established).
Definitely a candidate for 2.2
1997-03-13 21:22:09 +00:00
Bruce Evans
45d1562d43 Remove old output file, if any, before creating the output file, in
case the file is a stale link.

Reviewed by:	wollman
1997-03-13 18:56:18 +00:00
Brian Somers
c6c740be8b Requested by: Harlan Stenn <Harlan.Stenn@pfcs.com>
Accept SIGHUP as a "re-open logfile" signal.  As ppp
doesn't set it's serial line to it's controlling terminal,
we can use HUP :)

This is a candidate for 2.2.  The log.[ch] changes won't
conflict, but the main.c changes will.  We just want to change the
kill(...,SIGHUP) to a SIGTERM and change the signal(SIGHUP,Hangup)
to a pending_signal(SIGHUP,LogReOpen).
1997-03-13 14:53:55 +00:00
Brian Somers
f5ff0f7c99 Reviewed by: ache@freebsd.org
These changes should fix the signal "problems" in ppp.
The signal changes should really be put into 2.2 too !
The following patches should do it.  There were some other
changes made by Andrey recently that havn't been brought
into 2.2, it may be worth doing them now.
1997-03-13 12:45:35 +00:00
Ollivier Robert
2bb69a4847 1. change tty handling from sgttyb to termios,
2. fix a potential buffer oflow,
3. makes watch(8) conform to sysexits(3).

Not a strong 2.2 candidate even if it would be nice.

Reviewed by:	joerg, imp
1997-03-13 08:35:45 +00:00
David Nugent
3875dc8d63 Submitted by: Greg Ungerer <gerg@stallion.oz.au>
Add manpages for stl, stli drivers.
Add manpages for stlload, stlstats.
Update stli bootcode.
Update stlload, stlstats to revision 1.0.0 from author.
1997-03-13 04:21:44 +00:00
Mike Pritchard
42deda5d1a Add cvs Id. 1997-03-12 15:08:06 +00:00
Peter Wemm
9bdaf328ef Make amd actually work instead of just compiling. The new Lite2 code
was not setting the version number in the nfs_args data to mount(2), so it
was returning EFAULT.  Perhaps the nfs_args version number was something
we added at some point?
1997-03-12 08:29:44 +00:00