Commit graph

550 commits

Author SHA1 Message Date
Joerg Wunsch a471a8c32e Remove the dangerous "eof" command that used to be an alias for "weof"
but usually got confused with "eom".  It didn't ring the warning bell
saying: "You are probably going to mark your whole tape as deleted
right now."

A warning message pointing to "weof" and "eom" is issued instead.
1995-07-16 10:16:26 +00:00
Garrett Wollman 99005ad98e Added support for an LCS-style `wheel su' which allows users in group wheel
to su to root by authenticating as themselves (using a password or S/Key)
rather than by using the root password.  This is useful in contexts like
ours, where a large group of people need root access to a set of machines.
(However, the security implications are such that this should not be
enabled by default.)

The code is conditionalized on WHEELSU.
1995-07-12 20:11:19 +00:00
Bruce Evans 926e94cd40 Don't attempt to read the variable total' from the kernel. total'
isn't used in systat or in the kernel (it was replaced by a sysctl()
call involving VM_METER) and will go away when I clean up bogus
common variables in the kernel.
1995-07-12 20:09:02 +00:00
Bruce Evans 7e4a866916 Instantiate our own variables instead of depending on bogus common
declarations in system headers that will be fixed soon.
1995-07-12 19:21:36 +00:00
Bruce Evans 30df0b88e1 Instantiate our own variables instead of depending on bogus common
declarations in system headers that will be fixed soon.
1995-07-12 19:10:17 +00:00
Andreas Schulz f690290609 Add kzip to the clean and cleandir target so that it also get cleaned up
properly.
1995-07-08 22:24:20 +00:00
Joerg Wunsch d38ca307b7 PR # bin/274
> The command:
>
> touch -t 199504011200 testfile
>
> gives the error message:
>
> touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]

Submitted by:	mpp@legarto.minn.net (Mike Pritchard)
1995-07-08 16:47:47 +00:00
Rodney W. Grimes a3f8d23a48 This fixes 'split -l NNN foo'. As it stands split will
complain about an 'illegal line count' becuase it's looking
at the wrong end pointer (ep) to detect any extra characters
after the NNN.

Submitted by:	Rich Murphey <rich@freebsd.org>

This should probably get pulled into 2.0.6 and 2.1.0
1995-07-07 08:23:52 +00:00
John Fieber bbba09f659 New feature: a -links option, when generating html output, creates
symbolic links for each cross reference label in the source file, thus
allowing external documents to link to a more or less fixed target,
rather that the numbered files which can change whenever the target
document is modified.

Bug fix: warn when a reference is made to a nonexistant label.
1995-06-30 15:19:12 +00:00
Satoshi Asami 67c347acbd Terminate string copied by strncpy() by '\0' to fix a core dump.
Submitted by:	kogane@kces.koganemaru.co.jp (Nobuyuki Koganemaru)
1995-06-30 04:59:44 +00:00
Doug Rabson a62dc40654 Changes to support version 3 of the NFS protocol.
The version 2 support has been tested (client+server) against FreeBSD-2.0,
IRIX 5.3 and FreeBSD-current (using a loopback mount).  The version 2 support
is stable AFAIK.
The version 3 support has been tested with a loopback mount and minimally
against an IRIX 5.3 server.  It needs more testing and may have problems.
I have patched amd to support the new variable length filehandles although
it will still only use version 2 of the protocol.

Before booting a kernel with these changes, nfs clients will need to at least
build and install /usr/sbin/mount_nfs.  Servers will need to build and
install /usr/sbin/mountd.

NFS diskless support is untested.

Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
1995-06-27 11:07:30 +00:00
Joerg Wunsch f9e1554f6f Include killall. 1995-06-25 18:11:06 +00:00
Joerg Wunsch 1fc7066757 Our Perl oracle hit again: Wolfram Schneider's killall utility.
Kills processes by name instead of by UID.

(Man page by me.)

Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-06-25 18:08:27 +00:00
Bruce Evans facd9d3003 usr/ucb -> usr/bin and usr/msgs -> var/msgs. 1995-06-25 03:52:30 +00:00
Bill Paul 14eb79c475 Argh!! Got the arguments in the printf() backwards. 1995-06-24 18:12:17 +00:00
Bill Paul 1724847d45 Whoops: getnewpasswd() always says "Changing local password for foo".
Change things slightly so this message says "local" or "YP" as needed
so we can use it for both NIS and local password changes without
confusing people.
1995-06-24 18:08:25 +00:00
Bill Paul a7aa6bd1ea getnewyppasswd() in yp_passwd.c doesn't generate correct encrypted
password strings when DES isn't used; somehow the encrypted password
is corrupted and it winds up containing control chars, which yppasswdd
subsequently rejects. This breaks yppasswd on non-DES FreeBSD systems
using NIS.

Fix: scrap getnewyppasswd() entirely and use getnewpasswd() from
local_password.c, since it already works properly and is virtually
identical to getnewyppasswd() anyway. (Wish I'd noticed this sooner.)

This fixes a problem just reported on comp.unix.bsd.freebsd.misc.
1995-06-24 17:47:51 +00:00
Andrey A. Chernov 2f22cc074c Back out prev. NetBSD fix, it cause skipping some error constructions,
don't delete initial space from line instead
1995-06-24 17:34:15 +00:00
Andrey A. Chernov 33e5f8f7b0 Don't make error on ^<spaces>\n
Obtained from: NetBSD
1995-06-24 17:23:31 +00:00
Joerg Wunsch 29eaad36e5 Make parsetime.c more consistent by using the (already declared) enum
type instead of int all over the place.  (Cosmetic, enhances
debugging.)

Point out that a date specification _must_ follow the time of day
spec, in the man page.  This clarifies the last point PR # of bin/483:
"at doesn't seem to ..." (the remainder has already been fixed with
version 1.3 of parsetime.c).
1995-06-24 17:15:56 +00:00
Bill Paul 7cb00bd6b4 Somewhere along the line, somebody decided to make the 'full name' field
restricted. Am I the only one who sees the absurdity of having chfn be
a link to chpass, and then denying users permission to use chpass to
change their full names?

Of course, chpass has a much more severe bug in it, which is that it
allows users to change their password database info without first
asking them for their password. I hope to fix this at some point
so that I can merge ypchpass, ypchfn, ypchsh and chpass into one
program (password authentication is required for changing NIS data).
1995-06-23 16:24:34 +00:00
Andrey A. Chernov c2ac9540cd Fix finger not check all users ~/.nofinger, only for actually
matched. Close PR 539
Submitted by: tom@haven.uniserve.com
1995-06-21 23:54:43 +00:00
Rodney W. Grimes a851ee6e7b Correct spelling of Judy Garland's name.
Submitted by:	Kenneth Stailey <kstailey@gnu.ai.mit.edu>
Obtained from:  NetBSD gnats bug list
1995-06-20 12:40:48 +00:00
Satoshi Asami 9509c1b284 Rename, lt_LN.ISO8859-1 -> lt_LN.ISO_8859-1.
Reviewed by:	rgrimes
1995-06-19 22:15:35 +00:00
Garrett Wollman 7b4315a73a Correct spelling mistake: upcated -> updated. 1995-06-19 16:55:16 +00:00
Garrett Wollman 861b18288b Print out the statistics for cache updates of rtt, rttvar, and ssthresh. 1995-06-19 16:46:21 +00:00
Andrey A. Chernov fa19ca391b Fix parsing SYSV/GNU "include" 1995-06-18 13:08:18 +00:00
Andrey A. Chernov 76da55f6bc NetBSD fixes: declare more prototypes, move .OPTIONAL in alphabet
order, prevent suffix rule, if direct or children dependances exists,
forget to free v->name in var.c
My fixes: fix famous ^\t\n bug, correct free order in str_end
Reviewed by: bde
Obtained from: NetBSD, me
1995-06-18 12:34:14 +00:00
Andrey A. Chernov ee0aa83a01 Fix lseek arg by including unistd.h 1995-06-17 04:07:09 +00:00
Andrey A. Chernov 56718b4a07 Rename ISO8859-1 to ISO_8859-1 per RFC1700 1995-06-17 03:25:34 +00:00
Andrey A. Chernov 6ed40291ad Allow additional parsing of SYSV/GNU make "include" directive, it covers
90% of problems in ports Makefiles
1995-06-16 22:46:38 +00:00
Bill Paul 8a363d18bb Patch to fix PR #518. In a system with no NIS, passwd will complain
that it can't contact an NIS server when asked to change the password
of an invalid user. It should say 'unknown user' instead.

The fix is to check for the _PW_KEYYPENABLED flag in the password
database and only roll over into the yppasswd stuff if the flag
is enabled (this means passwd will not behave as yppasswd if
there are no +::::::::: entries in /etc/master.passwd). If
NIS is enabled but the user says 'passwd -l foouser' where
foouser exists in the NIS maps, but not in /etc/master.passwd,
we also say 'unknown user.' This is so we don't outsmart ourselves:
specifying the -l flag restricts passwd to the local password database
even if NIS is enabled.

This change should probably be merged into 2.1.
1995-06-16 03:33:10 +00:00
Garrett Wollman ef105c25f6 Re-write `netstat -g' code to match the 3.5 data structures. 1995-06-13 19:18:40 +00:00
Garrett Wollman dc371ee449 Re-enable netstat now that it compiles again. 1995-06-13 19:18:19 +00:00
Garrett Wollman 84330d389f Temporarily disable netstat 1995-06-13 17:47:38 +00:00
Rodney W. Grimes d3628763db Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
Rodney W. Grimes 7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Andrey A. Chernov 70659b24a8 Fix %d and others printing
Reviewed by: davidg
Submitted by: Bill Fenner <fenner@parc.xerox.com>
1995-05-24 02:54:30 +00:00
Guido van Rooij c8945315ef Set copyright so we can actually distribute and use it.
Reviewed by:	David Greenman
Submitted by:	Wietse Venema
Obtained from:
1995-05-19 09:53:51 +00:00
John Fieber 1190b57788 Remove extraneous empty paragraphs (<p></p>) from the output. 1995-05-18 03:01:28 +00:00
David Greenman 92172c87b4 If an ut_host field in an utmp entry contains a ':' (e.g. for an xterm session)
w doesn't handle the non-'\0' terminated char arrays in struct utmp properly.

Submitted by:	jarle@idt.unit.no
1995-05-16 11:29:41 +00:00
David Greenman f5504b009d Use symbolic "IPTOS_LOWDELAY" instead of octal bit value for this socket
option. The bit value was wrong.
1995-05-15 11:58:03 +00:00
Andrey A. Chernov 0b45516009 End of listcan be not marked, fix it
Submitted by: Kai Vorma <vode@snakemail.hut.fi>
1995-05-15 00:03:32 +00:00
Andrey A. Chernov 8868bb111b Fix false backspace reporting 1995-05-14 22:46:15 +00:00
Andrey A. Chernov bd940a6e9e Fix manpage lies about -P 1995-05-13 22:06:12 +00:00
Andrey A. Chernov 9bda6bd9b8 Remove -R from CFLAGS 1995-05-12 13:15:41 +00:00
Andrey A. Chernov d293af2d2e Make fmt ctype-aware
Fix non-critical bug with getting EOF double times
Not call strlen for zero length test
1995-05-11 21:32:35 +00:00
Jordan K. Hubbard 817836447b Remove dmenu from the Makefile 1995-05-10 18:22:29 +00:00
John Fieber 710b2e3600 Add sgmlfmt. 1995-05-10 00:38:30 +00:00
John Fieber 317be71920 The program that turns sgml files (tagged according to the linuxdoc
DTD) into HTML, LaTeX or ascii.  (the latter is still pretty rough)
Reviewed by:	rgrimes
1995-05-09 23:58:06 +00:00