Commit Graph

1334 Commits

Author SHA1 Message Date
adam
794f8a0f1c complete err() changes, actually use warn() in most instances 1996-08-26 20:37:48 +00:00
peter
64c12fd60d Dont forget to #include <err.h> 1996-08-25 21:14:19 +00:00
peter
a5eafc88c5 Argh! caught! *blush*.. This program was supplying it's own 'err' routine
which was slightly different to the libc one.  To save any more cunfusion,
use the libc one.
1996-08-25 21:12:01 +00:00
peter
72cf92af79 Fix some bogons:
- timeval in select loop was depending on not having the remaining time
  returned from select(), causing a busy spin on an implementation that
  does implement it.
- the err() usage was pretty bogus, some of the error messages had
  strerror attached manually and then reattached by err().
1996-08-25 21:03:50 +00:00
alex
d1a13b5346 Add synopsis for yppasswd. 1996-08-24 23:27:04 +00:00
mpp
8af7d5dcdd Change a stray reference to pstat to vmstat.
Pointed-out-by: bde
1996-08-24 16:12:53 +00:00
peter
5de1717df6 Locate the text inode, closes PR#1070 1996-08-24 13:43:46 +00:00
peter
96566bfc03 Quick attempt to decode DTYPE_PIPE files and print something meaningful
for them.  Otherwise, it does strange things when it hits one..
1996-08-24 08:01:29 +00:00
peter
a8e6568074 s/__unused/__sex_unused/ - this is simply a placeholder variable that
conflicts with what I added to cdefs.h a while ago.  I never noticed this
since I used nvi-1.71..
1996-08-24 03:49:14 +00:00
mpp
748de7f8e2 Convert to mdoc format. 1996-08-23 21:40:59 +00:00
mpp
bef6fb830a Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
phk
733856f964 Try to make netstat more smart about port numbers.
Feedback most welcome.
1996-08-23 19:05:34 +00:00
phk
a283f65a08 Fix a couple of file-descriptor leaks. 1996-08-23 09:33:32 +00:00
jkh
7b0b861fef Don't make -l warn when it's not used, so we can potentially set it
all the time if we want to use "link" behavior for file URLs (and not
have fetch whine at us when they're not).
1996-08-23 06:21:17 +00:00
mpp
a951e1ba65 Use the .At macro where appropriate. 1996-08-23 01:06:24 +00:00
mpp
b4aab8b6f6 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
jkh
e9dba4b462 Print the correct thing when interrupted by a signal. 1996-08-22 23:25:24 +00:00
jkh
6e3ba357ba 1. Understand file:/path style URLs.
2. Add a -l flag for symlinking to rather than copying file:/path style URLs.
3. Add a -T flag for setting the timeout interval (overrides FTP_TIMEOUT if set)
1996-08-22 21:30:51 +00:00
wosch
1647af0a74 code cleanup 1996-08-22 18:46:13 +00:00
mpp
e972d19de5 Add kzip(8) as supplied with PR# 1507, with some minor cleanup by me.
Submitted by:	 David E. O'Brien <obrien@nuxi.com>
1996-08-21 19:07:22 +00:00
jkh
3b73be8498 Fix a small potential bogon I noticed here with restarts. 1996-08-21 01:27:25 +00:00
wosch
b72054ac4e a header file for zopen.3
Pointed out by: Philippe Charnier <charnier@lirmm.fr>
1996-08-20 20:49:39 +00:00
ache
a15770cef3 Fix non-break space attrs 1996-08-20 14:36:56 +00:00
peter
3ca8ec42ef If running under a typical sysv-style curses, including ncurses, use
hline() to draw the window split rather than fudging it with dashes.
This causes the line to be drawn in line-draw characters if the terminal
description has them.

Suggested by: ache
1996-08-20 00:31:37 +00:00
peter
d093c7b48e Simplistic conversion of mail to use termios instead of sgtty. 1996-08-19 20:23:35 +00:00
peter
c663bae3b7 Update some ancient warts in talk:
- use termios, not sgtty
  - dont use _putchar(), that was a BSD-curses specific feature not in
    other curses packages (such as ncurses)
  - use sigaction, not sigvec while I'm there
  - box() does different things under sysv/ncurses on 1-line high windows,
    and BSD-curses doesn't have hline(), so do it by adding characters
    instead.  That works on both styles of curses.
1996-08-19 19:42:00 +00:00
wosch
fc84e0db6d replace shell comment char `#'' with troff comment command `.\"'' 1996-08-17 23:31:38 +00:00
wosch
dfb9d51f1f make install should not install any file in /etc. 1996-08-17 22:27:08 +00:00
nate
1644aa3579 kzip's usage() does not show the ``-v'' verbose option
Submitted by:	"David E. O'Brien" <obrien@nuxi.cs.ucdavis.edu>
1996-08-16 15:22:25 +00:00
jkh
4659e0fe44 Add support for HTTP proxies, fix some bugs with http transfers.
Submitted-By: Mikael Hybsch <micke@dynas.se>
1996-08-14 17:50:23 +00:00
wosch
9c0ad6a2b3 bigram
Bigram does not remove newline at end of filename. This
	break particulary the bigram algorithm and /var/db/locate.database
	grow up 15 %.

	Bigram does not check for characters outside 32-127.

	The bigram output is silly and need ~1/2 CPU time of
	database rebuilding.

	old:
	locate.bigram < $filelist | sort | uniq -c | sort -nr
                                    ^^^^^^^^^^^^^^
				    this can easy made bigram

	new:
        bigram < $filelist | sort -nr

code
	Code does not check for char 31.
	Use a lookup array instead a function. 3 x faster.

updatedb
	rewritten
	sync with bigram changes

	read config file /etc/locate.rc if exists
	submitted by: guido@gvr.win.tue.nl (Guido van Rooij)

concatdb - concatenate locate databases
mklocatedb - build locate database
1996-08-14 00:22:31 +00:00
ache
9dcb14d6d3 New collating rules, reflect POSIX better now 1996-08-13 12:20:11 +00:00
peter
4485ba1557 Add a simple -v (verbose) option that allows you to see when -C actually
installs something.  This is not 100% right, since it has a false hit
when install -C snaps hard links.

Also, run strip(1) from the $PATH, otherwise you need a special version
of install to install (say) elf binaries which have a different strip.
With JDP's elfkit, the layout of the path determines which binary format
you are generating.
1996-08-12 17:03:30 +00:00
peter
6b18c72cfc Add new option to chpass: -e "expire" ; change the account expire time
from a script as if it was done in the interactive editor.

When reassembling the gecos string, trim any excess trailing commas, they
look ugly in the passwd file. :-)

Have a simple Makefile tweak to prevent mortal users from changing their
fullname.  As ISP's we have seem some real bizzare stuff here..

When decoding the change/expire string, allow the month number as a
synonym for the name of the month.. (ie: 1 as well as Jan or January)
Note that using numbers means there's a chance that you can get bitten
if you're not used to the American DD-MM-YY order.
1996-08-12 14:45:26 +00:00
jkh
633999a94b Fix broken modtime preservation code. *Now* it preserves the modtime
correctly!
Noticed-By: knarf@camelot.de (Frank Bartels)
1996-08-12 12:55:26 +00:00
ache
47124e7ef4 Localize it 1996-08-12 11:39:24 +00:00
ache
8aa8a81b2a Make it at least semi-worked 1996-08-11 18:08:53 +00:00
ache
4fbce9eec9 Localize it
8bit cleanup
1996-08-11 17:46:35 +00:00
ache
cf7c5f37f7 Pick collate info for RE character ranges 1996-08-11 16:22:47 +00:00
ache
a254ea6e33 Describe collation order rules (from POSIX WG) 1996-08-11 14:55:14 +00:00
alex
057f2934d8 Fix some improperly wrapped lines in the code. 1996-08-11 02:20:05 +00:00
peter
e1600f46df s/trace -C/ktrace -C/
Pointed out by: zgabor@code.hu (Zahemszky Gabor)  PR#1486
1996-08-10 09:05:17 +00:00
peter
eda223150a Remove the need for rdist(1) to run setuid, thus completely closing any
possibility of a security hole.  It now does what rdist-6 does, and calls
/usr/bin/rsh if not running as root.  There are NO protocol changes, this
is 100% compatable with the old rdist, except that it does not need setuid
root privs.

However, there are some minor differences to the base rdist-6 code in that
if it is being run by root, it will call rcmd(3) directly rather than
piping everything through rsh(1).  This is a little more efficient as it
doesn't involve context switching on pipe reads/writes.

Also, the -P option was added from rdist-6.1.2, which allows an alternative
rsh program to be specified, such as ssh.  Note that it requires the fixes
to the ssh port to disable the unconditional USE_PIPES option that was
recently added.  The rcmd(3) optimisation is disabled if a non-rsh program
is speficied.
1996-08-10 07:54:17 +00:00
joerg
e6813668b6 Fix a potential buffer overflow condition.
Submitted by:	Somebody on -hackers, ooops, i've already deleted that mail
1996-08-08 07:58:07 +00:00
peter
a19a05bd39 Move tsort back to lib-tools where it belongs, and add a "specially
for bootstrap" tweak to the lex Makefile to stop it building the library
too early.

This untangles things a bit more, it stops new bootstraps failing because
libl/libfl uses 'ld -O' before ld is updated.
1996-08-07 13:25:59 +00:00
jkh
3ed03544cf Defer to fashion. 1996-08-07 02:15:26 +00:00
jmz
1e79f06390 Suppress the messages from the server after login (ftpVerbose(ftp,0)). Errors
are already correctly reported.
1996-08-04 00:35:39 +00:00
wosch
2c0fe88c09 documented that the dog Biff is dead
Obtained from: A Quarter Century of UNIX, Peter H. Salus
1996-08-03 14:25:02 +00:00
jkh
5f947203c5 Adapt to new libftpio. [jkh]
Better error messages.
Submitted-By: "David E. O'Brien" <obrien@Nuxi.cs.ucdavis.edu>
1996-08-03 13:14:47 +00:00
jkh
6d6a5bd8e1 Close PR#1455. In a couple of weeks, I'll change bsd.lib.mk to use
tsort -q as well - I don't feel like adding tsort as Yet Another Item to the
bootstrap target.
1996-08-02 04:50:44 +00:00
jdp
f05fb79839 Fix a bug under time's "-l" option. The values reported for average
shared memory size, average unshared data size, and average unshared
stack size were too high by a factor of 128/100, because the program
used a hard-coded hz value of 100.  The correct value is the frequency
of the statistics clock, currently 128.  The program now uses sysctl
to get the stathz value from the kernel.

Discussed with:	bde@freebsd.org (Bruce Evans)
1996-07-30 19:00:12 +00:00
adam
e46c6e5f4a one file somehow slipped by me in the previous commit
tidy up
1996-07-30 15:44:30 +00:00
adam
e46b438575 when file can be opened for read but cannot be read from:
fail once (was twice) in forward case
fail once (was no times) in reverse case

this can happen when file is a directory on an NFS or procfs mount.
1996-07-30 13:11:43 +00:00
wosch
f837393b70 ree (aka ee) doesn't have a man page
Submitted by:	 Philippe Charnier           charnier@lirmm.fr
1996-07-29 13:46:12 +00:00
pst
7c327b7d27 Add newline, closes bin/1433 1996-07-26 23:45:36 +00:00
pst
ce6b6b7927 Add Bruce's improvement to security patch 1996-07-25 18:27:40 +00:00
wollman
3d45bf42be Fix an itinerant cross-reference. 1996-07-25 18:11:30 +00:00
julian
16ad55d2ab Submitted by: archie@whistle.com
slight cleanups on yesterday's patches
1996-07-23 22:00:14 +00:00
nate
7737f5d2e9 'make' prints an extra leading `make: ' and extra trailing newline if
there is no target to make.

% make
make: make: no target to make.

%

Beause the function Punt() in main.c takes care of leading 'make:' and
trailing newline, so, there is no need to pass explicitly.

Submitted by:	enami@ba2.so-net.or.jp
Obtained from:	NetBSD GNATS
1996-07-23 18:55:21 +00:00
julian
7805978130 Submitted by: archie@whistle.com
appletalk cleanups
1996-07-23 01:18:47 +00:00
jdp
699492bba8 Fix botches in the handling of "AM" and "PM":
12:xx PM is 12:xx, not 24:xx.
    12:xx AM is 00:xx, not 12:xx.
1996-07-19 00:44:55 +00:00
joerg
81a254ffb3 s/msg/shm/ for one variable.
Submitted by:	jin@george.lbl.gov (Jin Guojun[ITG])
1996-07-18 20:42:48 +00:00
jkh
df5a608d70 Whups - update the usage message too. 1996-07-18 00:08:58 +00:00
jkh
dc8c550225 Add -n flag to use the current modtime rather than preserving it. 1996-07-18 00:08:02 +00:00
bde
8c325c27d2 Yet^2 another fix for the line continuation bug.
The fundamental problem with the original code is that it accesses
p[-2] which is one before the beginning of the input buffer for
empty lines.  rev.1.6 just moved the problem from failures when
p[-2] happens to be '\\' to failures when it happens to be '\0'.
rev.1.5 was confused about the trailing newline and other things.

I went back to rev.1.5 and fixed it.  The result is the same as
Keith Bostic's final version in PR 1356 except it loses more
gracefully for excessively long input lines.
1996-07-17 12:18:51 +00:00
bde
eee2e98b23 Added a -V option to print make's idea of the value of a variable.
Submitted by:	mark@linus.demon.co.uk (Mark Valentine)

Fixed bugs and inconsistencies in synopsis and usage message.
1996-07-17 11:02:43 +00:00
pst
bf393959c2 Do a bounds check on the strcpy of environment variables onto the stack. 1996-07-15 16:29:03 +00:00
guido
9b11efaab1 Move setting of username to the correcft place; also initialize it.
Reviewed by:	peter@freebsd.org
1996-07-14 16:42:33 +00:00
jkh
730964efd2 General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:08:36 +00:00
nate
214f4abc72 Changed all sprintf() calls to snprintf().
Obtained from:	Christos Zoulas <christos@deshaw.com> via NetBSD PR 2621,

[ slightly modified since we don't use libcompat anymore. ]

I'm not sure if this fixes the rdist security bug completely, but it
sure can't hurt!
1996-07-12 04:00:15 +00:00
julian
9277e63302 Adding changes to ipfw and the kernel to support ip packet diversion..
This stuff should not be too destructive if the IPDIVERT is not compiled in..
 be aware that this changes the size of the ip_fw struct
so ipfw needs to be recompiled to use it.. more changes coming to clean this up.
1996-07-10 19:44:30 +00:00
julian
0c208df31d appletalk cleanups
e.g.
Active ATALK connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
ddp        0      0  [69.230]130            [*.*]*
ddp        0      0  [69.230]128            [*.*]*
ddp        0      0  [69.230]1              [*.*]*

etc..
1996-07-09 02:55:47 +00:00
jkh
e6f22d1cfb New magic file with more politically correct identification of objects
and execs.
Submitted-By: Brent Nordquist <nordquis@winternet.com>
1996-07-05 19:26:52 +00:00
jkh
3bfb590a22 New man page for fetch(1).
Submitted by: jmz (with some small tweaks)
1996-07-05 01:03:20 +00:00
jmz
557b0ffde9 Back out previous commit: do not use read(), but fread (). Change BUFFER_SIZE
to 1K to avoid waiting too long between 2 progress reports in the case of a
slow transfer.
Move the signal()/setitimer() code just before the read loop because the
ftpio library set and reset the timer internally.
1996-07-05 00:06:36 +00:00
mpp
e8b984806f Document how chat logis it information via syslog.
Submitted by:	Partially based on a patch by Mark Diekhans
1996-07-03 02:27:30 +00:00
mpp
0283c0d756 Document login's use of /etc/login.access.
Submitted by:	David E. O'Brien
1996-07-03 01:20:09 +00:00
wosch
ce5be25578 remove zopen, zopen is not part of libc. 1996-07-02 23:04:50 +00:00
jmz
64422261a0 Use read(fileno(fp), ...) instead of fread(..., fp) to avoid buffered input. 1996-07-02 01:49:47 +00:00
jkh
8d17fabf36 Put back the $PWD override behavior of revision 1.4. The concensus
*seems* to be that it was the right thing to do.
1996-07-01 22:55:57 +00:00
guido
70bae2bee1 Implement incremental passwd database updates. This is done by ading a '-u'
option to pwd_mkdb and adding this option to utilities invoking it.
Further, the filling of both the secure and insecure databases has been
merged into one loop giving also a performance improvemnet.
Note that I did *not* change the adduser command. I don't read perl
(it is a write only language anyway).
The change will drastically improve performance for passwd and
friends with large passwd files. Vipw's performance won't change.
In order to do that some kind of diff should be made between the
old and new master.passwd and depending the amount of changes, an
incremental or complete update of the databases should be agreed
upon.
1996-07-01 19:38:50 +00:00
wosch
6147912add Add a reference to ident(1). 1996-06-30 16:06:44 +00:00
wosch
662bf44fe2 Add some options which makes lastcomm(1) a better debug tool. 1996-06-30 11:58:20 +00:00
joerg
e6299bb9a7 Do always create ktrace.out with mode 0600, to prevent it from
accidentally compromising information confidential to the user running
ktrace.
1996-06-30 09:40:44 +00:00
phk
2a36059e6a Add tclsh to Makefile.
(If you havn't updated your supfile Make world will croak.  CTM is ok)
1996-06-28 05:36:32 +00:00
jkh
f77db63be9 Remove code which overrode the opinion of getcwd() with an often bogus
value for $PWD.
1996-06-27 21:59:25 +00:00
nate
3b624192af Trivial bugfix which occurs when DEBUG_FLAGS is defined. If DEBUG_FLAGS
is defined, STRIP is undefined and causes the Makefile to blow up, so
make sure STRIP is defined if you plan on using it.
1996-06-27 21:48:50 +00:00
gpalmer
b99c167c70 Add -Wall to CFLAGS 1996-06-26 20:49:41 +00:00
phk
f23b1b2ca4 bmaked tclsh 1996-06-26 17:52:19 +00:00
dg
db69ec2618 Yet another fix for the line continuation bug in sed. Keith's patch
introduced a new bug. This fix appears to work correctly. Fixes PR#1350.

Submitted by:	mark@linus.demon.co.uk (Mark Valentine)
1996-06-26 05:54:32 +00:00
jmallett
9ca4dee9f5 This commit was generated by cvs2svn to compensate for changes in r16748,
which included commits to RCS files with non-trunk default branches.
1996-06-26 05:36:21 +00:00
jmallett
b0d58df5bf Import OpenBSD m4 as of today. 1996-06-26 05:36:21 +00:00
ache
c9f677c96f Make GET request and response parsing HTTP/1.0 compatible 1996-06-25 21:33:18 +00:00
jkh
8eb37231d4 Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00
jmz
85adcb8a3f Do not exit if ftpGetSize() returns a value < 0. You may well try to
fetch a whole <directory>.tar.gz on a server running wu-ftp.
1996-06-24 01:03:05 +00:00
bde
bbeb8f4943 Run the headers through cpp -dM to find the #defines. The direct search
has been broken at least since 4.4Lite moved most of the #defines out of
<sys/ioctl.h>.  This should be done better.  Only a few headers are
searched.

Added some #includes so that ioctl.c compiles.  The networking headers
have a maze of undocumented interdependencies and ioctl.c now actually
supports networking ioctls.
1996-06-23 17:05:10 +00:00
bde
54d26451a2 Made strip failures fatal. This fixes PR 1328. 1996-06-23 12:59:18 +00:00
bde
5dad8408ab Removed rubbish that stopped usr.bin/ncftp from going away. 1996-06-23 10:38:15 +00:00
jkh
694ef53b8b Adjust the copyright to match reality, remove printing of gratuitous newline. 1996-06-22 23:24:13 +00:00
jkh
36706f9cf0 Clean up more bogons:
1. Add a copyright at the top.
	2. Make passive and binary modes work with new ftpio semantics.
	3. Add a `mirror' (-m) flag which only copies the remote file if it's
	   not the same size or is newer.
1996-06-22 21:42:14 +00:00
jkh
7b161df218 Address Andrey's complaints:
1. Always use file modtime, and if that's not usable then default
	   to current time.
	2. Allow HTTP_TIMEOUT to be set as an environment variable to override
	   default.
	3. Handle SIGTERM.
1996-06-22 20:16:57 +00:00
jraynard
db063d0d54 Document the fact that it only works if the trace record is a regular file. 1996-06-22 02:15:28 +00:00
adam
5714dd98d0 added fetch 1996-06-20 17:47:24 +00:00
nate
b7dde76ce7 Whoops, forgot one FreeBSD specific change necessary for the lex .mk
macros to work.
1996-06-19 22:25:32 +00:00
jkh
62df2aaf01 Remove ncftp 1996-06-19 21:13:45 +00:00
jkh
756718209f Nuke this thing. 1996-06-19 21:13:05 +00:00
nate
d4f014461b Finish the import and merge in FreeBSD specific changes.
Add a 'bootstrap' target which *must* be run before building the new
version, since the new scanner relies on the current version of flex to
build itself otherwise.
1996-06-19 20:48:06 +00:00
jkh
5ef1dc8eac Add a newline - it seems to want it. 1996-06-19 20:36:35 +00:00
nate
d87c52cefc This commit was generated by cvs2svn to compensate for changes in r16514,
which included commits to RCS files with non-trunk default branches.
1996-06-19 20:26:48 +00:00
nate
abbed305c8 Flex version 2.5.3 from Vern Paxson at LBL. 1996-06-19 20:26:48 +00:00
dg
707c90b7b6 Fix from Keith Bostic <bostic@bsdi.com> for bug in sed dealing with
continuation lines.

Submitted by:	Keith Bostic via Kirk McKusick
1996-06-19 11:20:07 +00:00
jraynard
30b42b6dff Merged in 4.4Lite2 versions, added $Id$'s. The ktrace changes should
fix the garbage error messages printed out under certain circumstances.
1996-06-19 09:56:30 +00:00
asami
adda55c714 This commit was generated by cvs2svn to compensate for changes in r16504,
which included commits to RCS files with non-trunk default branches.
1996-06-19 09:32:11 +00:00
asami
b0bc5b5357 Jean-Marc's url fetch program, with Josh MacDonald's patches and
Jordan's ftpio library.

Submitted by:	jmz, jkh, jmacd (three-j!)
1996-06-19 09:32:11 +00:00
ache
aa108247fd Do not print herror message, if w -n gethostname failed to be 100%
compatible with any program
Suggested by: peter
1996-06-17 20:07:44 +00:00
ache
6e9cd1d33a Fix xterm/screen/(any program using just :xxx form) compatibility 1996-06-17 19:23:38 +00:00
ache
28e5db0271 Don't try convert "-" to numeric form for -n option 1996-06-17 18:35:16 +00:00
ache
8accda5bc3 Localize time 1996-06-17 16:44:16 +00:00
ache
0bf8c3c1df Fix w -n to really show numeric addresses, close PR 402
Partially submitted by: henrich@msu.edu (Charles Henrich)
1996-06-17 15:46:25 +00:00
ache
6f3eff2d14 Write numerical address instead of hostname for hostnames > UT_HOSTSIZE
to keep valid information in utmp and lastlog
1996-06-17 12:27:55 +00:00
peter
423ad17ec2 make netstat distinguish broadcast and blackhole routes where they appear.
(RTF_BLACKHOLE was already documented as being shown, but the code ignored
it)

Sumbitted by: Greg Lehey <grog@lemis.de>
1996-06-15 17:08:40 +00:00
wpaul
84c9cf8c4f Add missing semicolon so that this module compiles whithout -DYP.
Submitted (via Usenet) by: Nathan Torkington <gnat@frii.com>
1996-06-15 16:17:42 +00:00
joerg
41ecc2cea6 A totally revamped whereis(1), bringing back all the functionality of
the 4.3BSD command.  Rewritten from scratch after the old man page,
taking account for the different situation with man pages and source
tree hierarchy (re: /usr/src/gnu) of the FreeBSD project.

Reviewed by:	wosch (actually loooong time ago)
1996-06-15 12:29:48 +00:00
alex
645761372f Code clean up. Prototypes, casting, and parentheses around assignments
used as truth value.
1996-06-15 01:01:02 +00:00
alex
22732249c7 Fix a couple of minor typos. Closes PR 1309.
Reviewed by:	alex
Submitted by:	jraynard
1996-06-11 23:17:03 +00:00
jkh
ab0ef148ae Cosmetic fixes for drive names which are 4 chars long.
Submitted-By: Joe Greco <jgreco@ns.sol.net>
1996-06-11 16:18:58 +00:00
julian
0ba97cb21f better appletalk support. 1996-06-10 21:03:38 +00:00
phk
6ae6d3340a nitpicks.
Reviewed by:	phk
Submitted by:	"Philippe Charnier" <charnier@lirmm.fr>
1996-06-10 16:12:43 +00:00
phk
0c2d3dd217 typo.
Submitted by:	"Philippe Charnier" <charnier@lirmm.fr>
1996-06-10 15:55:48 +00:00
alex
a9d801afa6 Added revised manpage submitted by the author of units.
Reviewed by:	alex
Submitted by:	Adrian Mariano <adrian@cam.cornell.edu>
1996-06-10 00:43:42 +00:00
ache
8b9bc1f5a4 Make collation table compatible with POSIX WG15 view, i.e.
capital letters first
1996-06-09 17:24:45 +00:00
bde
f8b51172cd Print times/call in ns if hz >= 10e7. hz will be this large for high
resolution profiling on Pentiums.  On a 100MHz Pentium, the resolution
is at best 10 ns and actually a few hundred ns, but units of 10's or
100's of ns would be inconvenient and the current units of 1 us are a
bit too coarse.
1996-06-08 12:29:57 +00:00
alex
6e00df7691 Fix exit code when used in non-interactive mode.
Remove ';' typo attached to if statement.
1996-06-08 04:30:06 +00:00
alex
3774de6c03 Add units. 1996-06-08 03:46:33 +00:00
alex
713ac5c598 This commit was generated by cvs2svn to compensate for changes in r16186,
which included commits to RCS files with non-trunk default branches.
1996-06-08 03:43:43 +00:00
alex
8286eb57f9 Units conversion utility courtesy of NetBSD.
Submitted by:	Jeremy Prior
Obtained from:	NetBSD
1996-06-08 03:43:43 +00:00
julian
cc5ea83adc I guess the docs should mention the new protocol at least once. 1996-06-08 00:54:18 +00:00
julian
989c61cbbb patches to allow netstat to monitor appletalk sockets openned using the
/sys/netatalk protocol stack

more cleanups and fixes are likely
1996-06-08 00:20:42 +00:00
ache
cba2f6032a Add yet one holiday 1996-06-07 15:53:44 +00:00
wollman
99c2eebb28 Print PCB hash miss statistic. 1996-06-05 17:24:33 +00:00
jfieber
71c5c555bf Upgrade from 1.1 to 1.1.91. Unknown to me, the latter version was
actually available at the time I brought in the former.
Lots of assorted bug fixes and much needed support for catalogs.
1996-06-04 19:09:50 +00:00
alex
5c1e86ebb4 Code cleanup: remove unused variables, use correct *printf format
specifiers (some unsigned values were printed as signed, some longs
were printed as ints), and place parentheses around assignments in
if statements.
1996-06-02 23:19:12 +00:00
phk
b5bea7dc4e Backout yacc changes. 1996-06-02 17:22:01 +00:00
bde
05a2937332 Finished yacc rules changes. 1996-06-01 13:39:23 +00:00
phk
21ec7074f0 yacc rules change. 1996-05-30 23:09:11 +00:00
phk
c56c9536d4 yacc rule changes. 1996-05-30 23:05:55 +00:00
phk
d5d5efa444 yacc changes. 1996-05-30 23:03:00 +00:00
phk
628bfc8764 yacc rules change. 1996-05-30 22:48:22 +00:00
smpatel
49058140a1 Allow multiple process names to kill (i.e. 'killall ftpd inetd httpd')
Submitted by:	smpatel, wosch
Reviewed by:	wosch
1996-05-30 22:04:09 +00:00
pst
1f6cfc8362 Remove obsolete SOCKSv4 support 1996-05-30 03:09:18 +00:00
pst
93cb831554 1. Remove SOCKS support (unneded with SOCKS v5 port)
2. Update quarantine port support to use new kernel mechanism.
1996-05-30 03:08:17 +00:00
pst
10d32f7a70 Drop privileges if not using standard namelist or kernel file.
Submitted by:	smpatel (Sujal Patel)
1996-05-30 02:20:10 +00:00
pst
94a7f8648c Setgid kmem not required.
Submitted by:	smpatel (Sujal Patel)
1996-05-30 02:19:03 +00:00
pst
9d48774924 Drop privileges if we're not reading standard kernel file or namelist.
Submitted by:	smpatel (Sujal Patel)
1996-05-30 02:18:44 +00:00
joerg
3efdfd3825 Make it more explicit in the main help window that the magic to leave
`ee' is ``ESC-Enter''.  This supposedly fixes the biggest complaint
about it. ;)

(I hope ``ESC-Enter'' ain't too anglicistic in the French text...)
1996-05-27 21:00:06 +00:00
jdp
26b765c5bd Fix a bug in the mbufs display, seen when there was a large number
of mbufs in use.  If the number reached, e.g., 4 digits, then later
decreased to 3 digits, the last digit of the 4-digit number was
not erased.  This caused the display to show a wildly high number of
mbufs in use.
1996-05-27 17:47:09 +00:00
scrappy
0ec1a91c8d Changed printf for reporting transfer stats from using %.2g to %.2f to
get rid of "scientific notation" reporting (PR#bin/329)

Added a switch so that if bytes/sec > 1Meg/sec, report in Meg/sec instead
of Kbytes/sec
1996-05-26 21:12:50 +00:00
joerg
abf2e4ca00 The rs(1) command dumps core with the -s option (SIGSEGV)
(Fix a rangecheck condition.)

Closes PR # bin/1244: rs(1) dumps core with -s
1996-05-26 18:26:55 +00:00
wpaul
887124d78e Fix the -l flag. For some reason I can't fathom, I left in some code
that would cause it to fail if anyone but the superuser tried to use it.

Also fix a couple of harmless typos since I'm in the area.
1996-05-25 01:05:17 +00:00
wosch
f7107b8cab New option -append: teach makewhatis to only add records, instead
of clobbering the entire database.

sort options in alphabetic order.

install manpage makewhatis.local.8
1996-05-22 00:57:42 +00:00
wosch
cbba2fcb25 remove NLSDIR=${DESTDIR}/usr/share/nls, already defined in bsd.own.mk
unlink gencat(?) target before install, so gencat don't fail
if target is readonly and you are not root
1996-05-22 00:21:50 +00:00
wollman
2a2abec2c9 Correct usage message.
Submitted by:	 Faried Nawaz <fn@pain.csrv.uidaho.edu>
1996-05-20 15:54:10 +00:00
jfieber
6aebe8c012 Small patch from James Clark, fixes underscore handling in the SGML
declaration parsing.
1996-05-20 05:06:47 +00:00
mpp
c3744ff4f0 Convert f2c.1 to mdoc format.
Submitted by:	Steven G. Kargl <kargl@troutmask.apl.washington.edu>
1996-05-15 20:27:10 +00:00
jfieber
54adaeb608 Fix a few HTML 2.0 violations. 1996-05-15 17:05:17 +00:00
wosch
1474db4aa4 Bugfix: nested *?+ in regexp at /usr/bin/makewhatis line 286
Submitted by: invalid opcode <coredump@nervosa.com>

makewhatis.local - start makewhatis(1) only for file systems
                   physically mounted on the system
Running makewhatis from /etc/weekly for rw nfs-mounted /usr may kill
your NFS server -- all clients start makewhatis at the same time!
So use this wrapper instead calling makewhatis directly.

Pointed out by: Bruce
1996-05-12 21:02:04 +00:00
ache
bbacd01bad Describe calendar format & arguments better 1996-05-12 13:26:48 +00:00
ache
3683fd396b Includes cleanup
Submitted by: bde
1996-05-11 20:44:21 +00:00
ache
f9a86966d5 Describe russian calendar 1996-05-10 22:26:02 +00:00
ache
0d422cfa72 Add russian data handling 1996-05-10 21:39:38 +00:00
ache
34e186d98c Russian calendar 1996-05-10 21:36:56 +00:00
ache
9fe3b1633a Localize even more.
FIx Orthodox Easter calculation
Better debug output
1996-05-10 19:31:02 +00:00
ache
32706d589a Fix typing error 1996-05-10 17:36:33 +00:00
ache
df58ec580d Allow to configure national Easter names.
Speedup my national months/days handling code.
1996-05-10 17:32:06 +00:00
ache
e187821820 Localize it
Handle Orthodox Eastern
-Wall cleanup
1996-05-10 16:30:22 +00:00
wosch
9f795376b3 `mv'' -> `mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
1996-05-07 23:19:49 +00:00
wpaul
c7393c8b14 In use_yp(), call _yp_check() to make ultra, super-duper sure that NIS
is available before trying to go hunting for a domain name. This fixes
the following problem: you have +::::::::: in /etc/master.passwd but
NIS isn't running (no ypbind, no domain name set) -- passwd and chpass
will still try to change an NIS password instead of the local one.
1996-05-07 21:05:12 +00:00
jkh
609d5babf9 Correct an editing bogon I introduced earlier. 1996-05-04 10:25:03 +00:00
jkh
3a53f501cf Look conditionally in obj/ for mktoasc. 1996-05-03 03:15:58 +00:00
phk
31f8db110d NBPG -> PAGE_SIZE 1996-05-02 09:10:21 +00:00
joerg
2adcf98b06 Correct a typo.
Submitted by:	mbarkah@hemi.com (Ade Barkah)
1996-04-30 05:20:32 +00:00
joerg
651af4a301 Implement keyinfo(1) as a setuid Perl script, so /etc/skeykeys can
be made mode 0600.

Pointed out by: kieber@sax.de (Ulf Kieber)
Reviewed by:	pst
1996-04-26 21:35:11 +00:00
ache
8c5838ab84 Oops, restore missing piece of previous commit. 1996-04-25 18:14:11 +00:00
ache
46774261d1 Treat ^end<EOF> as valid terminator (like ^end\n), some encoders (f.e. Eudora)
produce such things.
1996-04-25 14:49:40 +00:00
pst
ceb677462b Add support for SOCKS if enabled.
Remove a useless bind() call (why did that ever get in there?)
1996-04-23 06:01:10 +00:00
pst
d73d5ee489 Add support for socks 1996-04-23 05:18:43 +00:00
smpatel
791bb4af0a Fix a segfault which occurs when it gets an empty input line.
Closes PR bin/1153

Reviewed by:	smpatel
Submitted by:	Matthew C. Mead (mmead@Glock.COM)
1996-04-22 18:37:22 +00:00
jdp
93a995d6da Update an offset field for i386 a.out core files, so that the program
name comes out right again.

Note: Don't bring this change directly into the -stable branch.  The
appropriate offset for -stable is different.
1996-04-18 19:05:58 +00:00
jdp
258c3bc7fe Fix a typo in the syntax for indirect offsets. 1996-04-18 18:17:14 +00:00
jhay
90f6f0bae9 Document that ipx is a valid protocol for the -f option.
Comment out ns and iso. They are not supported anymore.
1996-04-13 21:23:57 +00:00
bde
26ab1a5eac Changed all per-file errors to warnings. Exit with a nonzero status of
if there was a per-file error.  My test case of `wc /proc/curproc/*'
works reasonably now (much like `size /proc/curproc/*'.

Reviewed by:	wosch
1996-04-13 11:35:54 +00:00
mpp
bd0e546b7a Print some warnings if root invokes chpass and sets the
shell to one of the following:

- a non-existent file
- a non-regular file
- a file without any execute bits set

The shell is still set to whatever they entered even if the above
conditions exist (hey, it is the super user doing this after all :-),
but this might give the admin. some warning that they are about to screw
themselves and give them a chance to fix it before it is too late.

Inspired by: some new FreeBSD user on USENET who set his root shell
  to a shell that doesn't exist and now can't gain access to root (don't
  worry, I sent him some mail on how to recover from this).
1996-04-11 05:30:18 +00:00
wosch
3fae17b82d Do not exit if a file is not readable. This is a short hack
until someone rewrite wc(1).
1996-04-10 22:21:01 +00:00
mpp
a556b6b70f Correctly match the format flags and their descriptions.
Submitted by:	Dave Glowacki <dglo@ssec.wisc.edu>
1996-04-09 21:46:24 +00:00
wosch
48b2e5079b Easter was one day to fast.
Unix use days *since* January 1 [0-365], not the 1th day of year etc.
1996-04-09 19:48:31 +00:00
mpp
a6d857e732 Do not include math.h because it isn't used and it causes
"make world" to fail if you use the msun math library and
blow away /usr/include and then do "make world".  This is because
the msun math.h isn't installed with the other include files before
xlint is built.  It finally gets installed when the msun library
is built.

Perhaps "make world" should install the msun math.h file if
it doesn't install the CSRG math.h, to prevent problems
like this in the future.
1996-04-09 17:17:31 +00:00
joerg
f6c45bb517 Don't reference NULL pointers if owner and/or group are omitted.
Pointed out by:  somebody on the mailing list who's name i forgot
1996-04-08 10:59:36 +00:00
mpp
3c57dc7753 Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
bde
5e84eea81d Use strtoq() instead of strtol() so that large inums, and sizes can be
specified.

Not fixed: specification of large uids and gids; silent truncation of
unrepresentable values.
1996-04-07 12:58:13 +00:00
joerg
5a40b6631e Fix a typo.
Submitted by:	tgm@netcom.com (Thomas G. McWilliams)
1996-04-07 01:18:20 +00:00
mpp
86b292ffbd Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
mpp
9fcf3504c2 Correct some cross references and some path names. 1996-04-06 09:47:30 +00:00
julian
df817724e4 Submitted by: archie@tribe.com
allow the user to install using a Numeric GID or UID.
this brings it in to line with chgrp and chown, ans is required
by some people using FreeBSD in a product.
1996-04-06 01:50:40 +00:00
mpp
8c881f139a Change calendar to report the actual date for variable day events.
E.g. for Easter, and entries like "04/SunFirst" calendar will
now report:

04/05*	Good Friday (2 days before easter)
04/07*	First Sunday...

instead of:

Easter-2	Good Friday...
04/SunFirst	First Sunday...

I also modified the calendar files to use the variable day format
for a lot of events so that they will be reported correctly.
E.g. U.S. daylight savings time is now listed as:

04/SunFirst	Daylight savings time...

There are still a lot of wrong dates in there for some events
that move from year to year, but I don't have a good calendar handy
right now that I can use for reference.
1996-04-06 01:15:21 +00:00
wosch
060233b673 $* -> $@
check exit code from $MKDEP_CPP, not sed(1)
1996-04-05 22:13:49 +00:00
joerg
adfc8d6391 Xref clocks(7). 1996-04-05 08:53:38 +00:00
ache
341755dd21 Cast to unsigned char instead of unsigned
Cast ctype argument to unsigned char
1996-04-03 07:47:35 +00:00
jdp
12bc0ec742 Removed the definition of the make variable SHAREDIR. It was clashing
with the definition in bsd.own.mk, causing "make world" to fall over.
1996-04-02 22:26:18 +00:00
paul
29db052210 Don't build the special case lint libraries. 1996-03-31 22:18:46 +00:00
ache
61c0414a60 Localize time 1996-03-31 16:39:26 +00:00
bde
f92ab04306 Renamed Proc-cache to Dir-cache for the same reasons as in vmstat.
Tweaked screen positions to match.
1996-03-29 14:48:25 +00:00
jfieber
0cd10045f1 Make sure there is a linefeed at the end of generated HTML files. 1996-03-26 13:26:53 +00:00
paul
05ba1c640d Move llib-lstdc to llib-lc since that's what lint expects. 1996-03-24 20:03:46 +00:00
paul
ec8b8cac4c Re-enable building of lint libraries. 1996-03-24 19:47:12 +00:00
paul
f0d96aea1c Build and install llib-lstdc.ln. Disable Posix version.
Change install mode from NONBINMODE to LIBMODE
1996-03-24 19:45:58 +00:00
paul
eecb1c47c6 Add xlint 1996-03-24 14:09:33 +00:00
paul
4d8c803e7c Don't build lint libraries for the moment. 1996-03-24 13:58:27 +00:00
joerg
46c1f410f7 Cast char's to (u_char) before passing them to isctype() functions. 1996-03-19 21:21:06 +00:00
bde
76f3422854 Fixed a type mismatch in crufty misconfigured compatibilty code. 1996-03-19 15:11:13 +00:00
joerg
6aa1e2ad8b Minor correction regarding the last line of an uuencoded file.
Submitted by:	Giles Lean <giles@topaz.nemeton.com.au>
1996-03-17 09:49:51 +00:00
joerg
e34654d225 Fix a couple of sign-extension bugs.
Submitted by:	serg@bcs1.bcs.zaporizhzhe.ua (Sergey Shkonda)
1996-03-17 09:00:48 +00:00
olah
4bc23fada7 Allow the user to disable the use of T/TCP by setting the -T option.
This option becomes useless when all TCP stacks are fixed out there.
1996-03-15 16:41:49 +00:00
wosch
ea189287d5 remove /usr/ucb from path
cleanup Makefile
1996-03-12 21:37:05 +00:00
ache
ee6c90f5c0 Increment network byte order properly
Reviewed by: wollman
1996-03-12 10:23:30 +00:00
markm
f51e87f98c Make su a little less fascist about using Kerberos if it is not
configured or available.

Also fix a _nasty_ bug that would let one in if su -K was used.
Any old password would work :-( :-(.
1996-03-11 22:14:52 +00:00
dg
42390683e5 Move #include of queue.h before #include of socketvar.h in preparation for
struct socket changes.
1996-03-11 13:01:12 +00:00
dg
003979654a Include queue.h in preparation of struct socket changes. 1996-03-11 13:00:12 +00:00
dg
fa02871f5a Include queue.h in preparation for upcoming struct socket changes. 1996-03-11 12:56:07 +00:00
mpp
c9191eed55 Fix some grammer problems. 1996-03-11 04:50:13 +00:00
mpp
408d3a61bb Add the -x option to the usage string.
Submitted by:	Philippe Charnier <charnier@lirmm.fr>
1996-03-11 03:36:10 +00:00
mpp
7b57b8465d Fix a couple of typos.
Submitted by:	Philippe Charnier <charnier@limrr.fr>
1996-03-11 03:31:51 +00:00
mpp
d84578ce3e Change an incorrect reference to the "-n" flag to "-#".
Submitted by:	Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Obtained from: NetBSD-bugs mailing list
1996-03-11 03:09:00 +00:00
hsu
6845ef4584 From Lite2: rename fs to vfs. 1996-03-11 03:06:45 +00:00
ache
602a9dfadd Print 8bit chars from the net if current locale allows them 1996-03-10 23:33:48 +00:00
joerg
a12cf8aa0e Make talk automagically find out the interface IP address where the
remote peer will be connected through.  This avoids the ``Checking for
invitation on caller's machine'' problem for multi-homed hosts.

Thanks to: Garrett, for his `find_interface' example
1996-03-09 19:23:01 +00:00
markm
1eb18fd3ec Better integrate kerberos into su so that if an incorrect Kerberos
password is entered, the user is not prompted for a password a second
time.

This closes pr-bin/1006.
1996-03-09 14:57:43 +00:00
phk
5e8c0593bf Phkmalloc strikes again.
Found by:	asami
1996-03-07 08:59:53 +00:00
pst
b1ffbc592b Here's a patch that fixes the problem with modem syncronization
problems with tip.  There are some hardwired timeouts that ignores the
delay that you can set in the modem configuration file.  The hard-wire
delay is to short if the modem has to switch major modes and reset
(ie going from fax to data mode with a reset).

Now my modem transistions from HylaFax control to tip control and ppp mode
without any problems.

Submitted by:	Douglas Ambrisko <ambrisko@tcs.com>
1996-03-05 19:11:49 +00:00
dg
2a29cb99a4 Use '-fstype ufs' rather than '-fstype local' on the find command to avoid
special non-filesystems like procfs from being included.
1996-03-05 13:07:04 +00:00
asami
4a4eedf18c Make xargs take into account the bytes occupied by the environment.
Original by: peter
1996-03-05 07:43:40 +00:00
wpaul
bfc69caaf8 Fix small bug in get_yp_master(): this function is used to look for
a master server and initialize the suser_override flag, but in a non-NIS
environment is should be smart enough to just leave the flag cleared
and return (unless forced with a command-line argument like -y).
Otherwise, it will return an NIS-related error even if NIS isn't
turned on.

Pointed out by: ache
1996-03-04 15:34:43 +00:00
ache
ffc84438c1 Eliminate multiply uucplock.c copies 1996-03-04 10:46:29 +00:00
wosch
ba6dcbd08e `~a'', `~i'' etc. cause vi to core dump
if the (file)buffer is empty (line=1, colum=0, len=0)

Submitted by:	batie@agora.rdrop.com (Alan Batie)
1996-03-03 15:47:43 +00:00
jkh
7e37c839a0 Print number of second-level cache hits as per-directory, not per-process
(since they're per-directory now).
Learned from: Kirk McKusick's OS internals course.. :-)
1996-03-03 09:06:59 +00:00
dg
be0c3a28c5 Make the -w option actually useful to people. Instead of it creating a
messy 130 column collage, output the system totals -or- info for a
specific interface if -I is given. Also wait for <interval> before
outputting the first sample so that it represents meaningful data (as
opposed to the total since the system was booted - most busy systems
wrap around many times during their operation, so these numbers are
only misleading).
1996-02-29 07:44:37 +00:00
wosch
fc85423c34 first check the count and then get
the next line of characters and not cause it to first get
the characters even if the count (cnt) has become 0.

Submitted by:	R Bezuidenhout <rbezuide@mikom.csir.co.za>
1996-02-26 22:46:36 +00:00
guido
89b4ca893f Add a counter for the number of times the listen queue was overflowed to
the tcpstat structure. (netstat -s)
Reviewed by:	wollman
Obtained from: Steves, TCP/IP Ill. vol.3, page 189
1996-02-26 21:47:13 +00:00
bde
536f40a1eb Use ${ECHO} instead of echo' so that make -s' is fairly quiet. 1996-02-25 20:25:05 +00:00
joerg
9dbe7cd8d3 Now that we install the `flex' alias for our lex, we should also
install the `libfl' alias for libl.  Some third-party software will
expect it this way.

Submitted by:	Holm tiffe (holm@geophysik.tu-freiberg.de)
1996-02-24 16:31:31 +00:00
wpaul
fe4185f027 Merge in changes to support the new rpc.yppasswdd(8) and fix a few bugs.
In passwd(1):

- Gut most of yp_passwd.c and leave only a few things that aren't common
  to pw_yp.c.

- Add support for -d and -h flags to select domains and NIS server hosts
  to use when updating NIS passwords. This allows passwd(1) to be used
  for changing NIS passwords from machines that aren't configured as
  NIS clients. (This is mostly to allow passwd(1) to work on NIS master
  servers that aren't configured as clients -- an NIS server need not
  necessarily be configured as a client itself.)

  NOTE: Realize that having the ability to specify a domain and hostname
  lets you use passwd(1) (and chpass(1) too) to submit update requests
  to yppasswd daemons running on remote servers in remote domains which
  you may not even be bound to. For example, my machine at home is not
  an NIS client of the servers on the network that I manage, yet I can
  easily change my password at work using my FreeBSD box at home by doing:
  'passwd -d work.net.domain -h any.nis.server.on.my.net wpaul'. (Yes,
  I do use securenets at work; temporarily modified my securenets file
  to give my home system access.) Some people may not be too thrilled
  with this idea. Those who don't like this feature can recompile passwd(1)
  and chpass(1) with -DPARANOID to restrict the use of these flags to
  the superuser.

  (Oh, I should be adding proper securenets support to ypserv(8) and
  rpc.yppasswdd(8) over the weekend.)

- Merge in changes to allow root on the NIS master server to bypass
  authentication and change any user's NIS password. (The super-user
  on the NIS master already has privileges to do this, but doing it
  through passwd(1) is much easier than updating the maps by hand.)
  Note that passwd(1) communicates with rpc.yppasswdd(8) via a UNIX
  domain socket instead of via standard RPC/IP in this case.

- Update man page.

In chpass(1):

- Fix pw_yp.c to work properly in environments where NIS client
  services aren't available.

- Use realloc() instead of malloc() in copy_yp_pass() and copy_local_pass().

- Fix silly bug in copy_yp_pass(); some of the members of the passwd
  structure weren't being filled in correctly. (This went unnoticed
  for a while since the old yppasswdd didn't allow changes to the
  fields that were being botched.)

- chpass(1) now also allows the superuser on the NIS master server to
  make unrestricted changes to any user's NIS password information.

- Use UNIX domain comm channel to rpc.yppasswdd(8) when run by the
  superuser on the NIS master. This allows several new things:

   o superuser can update an entire master.passwd.{byname,byuid} entry
   o superuser can update records in arbitrary domains using -d flag to
     select a domain (before you could only change the default domain)
   o superuser can _add_ records to the NIS master.passwd maps, provided
     rpc.yppasswdd(8) has been started with the -a flag (to do this,
     the superuser must force NIS operation by specifying the -y flag
     to chpass(1) along with -a, i.e. 'chpass -y -a 'foo:::::::::')

- Back out the 'chpass -a <new password entry> breaks with NIS' fix
  from the last revision and fix it properly this time. The previous
  revision fixed the immediate problem but broke NIS operation in
  some cases.

- In edit.c, be a little more reasonable about deciding when to
  prevent the shell field from being changed.

  Submitted by Charles Owens <owensc@enc.edu>, who said:

  "I made a minor (one-line) modification to chpass, with regards
   to whether or not it allows the changing of shells.  In the 2.0.5 code,
   field changing follows the settings specified in the "list" structure
   defined in table.c .  For the shell, though, this is ignored.  A quick
   look in edit.c showed me why, but I don't understand why it was written as
   such.  The logic was

        if shell is standard shell, allow changing

   I changed it to

        if shell changing is allowed (per table.c) and it is a standard shell
             OR if uid=0, then allow changing."

   Makes sense to me.

- Update man page.
1996-02-23 16:08:59 +00:00