Commit Graph

893 Commits

Author SHA1 Message Date
jfieber
a88100d681 New Improved navigation controls. 1995-08-29 01:02:12 +00:00
mpp
684146e8ce Check for expired passwords before allowing access to the system. 1995-08-28 21:30:59 +00:00
jkh
116713e9f1 Oh foo. I should a) learn to read. b) learn to think. :-)
Telnet has nothing to do with this, it's telnetd and telnetd
doesn't use KLUDGELINEMODE so that theory is washed up.  Anyway,
back out previous commit and slink away with red face.
1995-08-28 17:52:39 +00:00
jkh
b6bc0e6c7a Remove -DKLUDGELINEMODE again; it's breaking things and Paul T. says
it's a bug anyway.
1995-08-28 17:47:39 +00:00
dg
3d1e990fe4 Fixed bug where 'id <user>' output the wrong group name (the user name
was output instead). Pointed out by Chael Hall <nowhere@chaos.taylored.com>.
1995-08-28 10:23:58 +00:00
dg
32d5877021 Backed out change in rev 1.2. 1995-08-27 02:02:19 +00:00
jkh
a6a4b5b5b8 Accept escaped quotes in msg catalogs. 1995-08-26 18:37:49 +00:00
jfieber
8390fd193a Make the -ascii option generate filename.ascii rather than filename.txt 1995-08-25 23:26:49 +00:00
pst
dbdfed4cab Fix up warning about qsort parameters 1995-08-23 04:51:05 +00:00
ache
5a4e23dc5e Upgrade to 2.9 1995-08-21 12:34:18 +00:00
peter
16e6392156 Update the DNS tools from 4.9.3-b9 -> 4.9.3-b24 1995-08-20 22:32:57 +00:00
peter
04a32155d8 Update 4.9.3.beta9p1 -> 4.9.3-beta24 1995-08-20 22:22:38 +00:00
bde
59ce0fe7ad Remove bogus ${DESTDIR}s from LINKS.
Keep DPADD up to date with LDADD.

bsd.prog.mk's install rule can't handle schg'ed links, so ugly
beforeinstall and afterinstall rules are required.
1995-08-17 11:26:42 +00:00
jkh
529c9b015a Merge various fixes from NetBSD. This will allow the WordPerfect for
SCO installation to run all the way through (some POSIX fixes).
1995-08-16 05:56:44 +00:00
joerg
6fad6e0e90 '#' is not a comment if a non-space char follow
Closes PR # bin/657: mail(1): comments in ~/.ma...

Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-08-15 19:40:26 +00:00
joerg
71bcd71cfd head(1) ignored EOFs (in certain cases).
Closes PR # bin/678: head(1) ignore EOF

Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-08-15 19:34:11 +00:00
wpaul
34376c5be4 Take the ypchfn/ypchsh stuff that was removed from passwd
and graft it into chpass.

Chpass can now tell when it's being asked to operate on an NIS
user and it displayes the appropriate message in the editor
template ("Changing NIS information for foo"). After the changes
have been made, chpass will promte the user for his NIS password.
If the password is correct, the changes are committed to yppasswdd.

Hopefully, this should make NIS more transparent to the end user.

Note that even the superuser needs to know a user's password before
he can change any NIS information (such is the nature of yppasswdd).
Also, changes to the password field are not permitted -- that's what
yppasswd is for. (The superuser may specify a new password, but
again, he needs to know the user's original password before he can
change it.)
1995-08-13 16:12:28 +00:00
wpaul
a5c24b2ab9 Remove the ypchfn/ypchsh stuff from passwd and leave just the
yppasswd support. The rest is moving into chpass.
1995-08-13 16:07:36 +00:00
mpp
e22ecec177 Restore the reference to quot(8). 1995-08-13 09:39:23 +00:00
ats
5c5410fe34 Submitted by: careilly@tcd.ie Colman Reilly
replace the reference of quot(8) with a reference to quota(1).
Colman Reilly noticed the missing quot, GNATS bin/671.
1995-08-12 13:52:26 +00:00
ache
8d12d53030 Replace old strftime format by %c, old format forces "Mon Day",
sequence which can be false for several languages.
1995-08-08 03:32:03 +00:00
ache
0e7b1c312a Allow national printable chars in .plan 1995-08-08 00:45:21 +00:00
ache
6185a84ff1 Replace asctime/ctime by strftime %c to use national representation 1995-08-08 00:38:33 +00:00
ache
b627d98084 Change ctime to strftime %c to use national date/time representation. 1995-08-08 00:15:16 +00:00
ache
97b1928185 Replace ctime by strftime %c to use national date representation now 1995-08-07 23:39:58 +00:00
wollman
fc1f6c1d76 Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
peter
c87e4ea046 Fix infamous "TIOCGWINSZ: Interrupted system call" on return from a ^Z
Fixes PR#513
Reviewed by:
Submitted by:
Obtained from:
1995-08-07 16:44:28 +00:00
ache
452c8234aa Remove timedef 1995-08-06 11:19:27 +00:00
markm
e7b61cf7cb Only build telnet if secure telnet is not going to be built.
Reviewed by:	rgrimes
1995-08-06 11:05:31 +00:00
jkh
2d07068155 Eliminate a few more lurking obj bogons. 1995-08-06 02:52:40 +00:00
ache
26a84585fb Fix pm name after some time playing with 1995-08-05 23:53:33 +00:00
ache
2747943921 timedef added 1995-08-05 23:28:21 +00:00
ache
5f38924add This commit was generated by cvs2svn to compensate for changes in r9946,
which included commits to RCS files with non-trunk default branches.
1995-08-05 23:23:41 +00:00
ache
e90c6792aa Very simple LC_TIME compiler, you fill free to commit more complicated one 1995-08-05 23:23:41 +00:00
jkh
8d694298ca Reference to obj dir hardcoded in this file replaced with
a more intelligent macro.  I hate the obj link mechanism, I tell you, I hate
it! :-)
1995-08-05 23:21:39 +00:00
ache
db0e73744f Remove _set_ospeed, it is done in tgetent 1995-08-05 22:04:23 +00:00
ache
b5d2d54dc4 Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
ache
6e28dc018a Remove _set_ospeed, trick done in tgetent now 1995-08-05 21:25:28 +00:00
pst
0e79ca4d90 Use data ports in the range 40000..44999 by default to enhance FTP usability
in a firewall environment.  Original idea by Mark Tracy (?).

Reviewed by:	wollman
Submitted by:	pst
1995-08-05 19:12:05 +00:00
joerg
98a78b7aa4 Make install not remove the target file if -s has been specified but
stripping failed (since the file has been a shell script, for
example).

Closes PR # bin/645: "install -c -s" can't inst...

Submitted by:	hohmuth@inf.tu-dresden.de (Michael Hohmuth)
1995-08-04 17:13:36 +00:00
ache
2e718b4cda Add missing ospeed initialization. 1995-08-04 08:05:18 +00:00
ache
cc27b9f050 Replace ospeed switch with _set_ospeed 1995-08-04 07:04:40 +00:00
ache
5f647d7dc1 Replace wrong ospeed setting (overflows) with new _set_ospeed
function.
1995-08-04 06:58:45 +00:00
ache
e287a130ea Allow it works with non-fixed termios speeds.
Replace ospeed switch with new _set_ospeed
1995-08-04 06:54:18 +00:00
ache
d96ed8f746 Change outc to match prototype 1995-08-04 06:45:55 +00:00
ache
53823cfb2c Make tset works with non-fixed termios speeds too.
Eliminate ospeed switch using new _set_ospeed function
1995-08-04 06:44:54 +00:00
ache
ab4db4586a Back out speed reducing to 38400 for old remote rlogind.
I do some digging out on this subject and found that remote
rlogind may reduce big speeds to 38400 by itself and (as more often
rlogind variant) speed setting ioctl fails, so speed left on 9600.
In all cases it doesn't do any real harm.
1995-08-03 23:54:49 +00:00
phk
08830e41cb Sanitize the PGP strings a bit. 1995-08-03 07:11:45 +00:00
ache
3eea849c86 Use the same DECODE_BAUD trick like in new telnet to set
termios speed
Obtained from: Pre-Lite2 telnet
1995-08-02 11:13:30 +00:00
asami
b5a0481510 Submitted by: Wolfram Schneider <w@cs.tu-berlin.de>
The currently (1995/07/31 04:22:07) implemented if (-x "$prog") {
works only if you have '.' in your $PATH variable.
1995-08-02 07:30:37 +00:00
ats
d3cbf043e9 Add the maybe_stripped to a CLEANFILES target to get a clean obj directory
after a clean or cleandir.
1995-08-01 21:53:35 +00:00
ache
291b6f45ff Reduce passed speed to 38400, like telnet does too.
Remote rlogind may not understand speeds > 38400.
1995-08-01 02:23:21 +00:00
asami
1fd348a456 Submitted by: Torbjorn Granlund <tege@matematik.su.se>
* /usr/bin/which doesn't work if a complete path is passed to it.  This is
  incompatible with other flavours of Unix, Here is a suggested patch:
1995-07-31 04:22:07 +00:00
dg
d07d67048e Output statistics as unsigned in the -w section.
Look at error return of kread() and stop on error.
Fix warning in kread() to not output "kvm_read:" twice.
Killed PCB cache misses stat as we no longer have it.
1995-07-29 22:34:15 +00:00
dg
42b1f12f0a Add "connections dropped by persist timeout" statistic. 1995-07-29 18:49:16 +00:00
bde
f5284ed86d Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
bde
4325752c55 Change install' to ${INSTALL}' as usual.
Remove the extra slash in ${DESTDIR}/${BINDIR}.
1995-07-25 00:22:50 +00:00
bde
6496fec897 Build a stripped copy of `strip' so that it doesn't have to be stripped
at install time.  This will allow `install -C' to avoid replacing the
installed copy if the new copy is the same.  `install -C' would actually
work right if `strip' is already installed, but the Makefile doesn't
know that and has to work for plain `install'.

Stripping should be done by default at link time, but complications
would still be required for installing `strip' in case the default is
overridden.
1995-07-24 22:50:17 +00:00
mpp
257ccda014 Add magic cookie for Zyxel modems ADPCM4 encoding.
Submitted by: Henrik Vestergaard Draboel <hvd@terry.ping.dk>
1995-07-24 03:59:15 +00:00
rgrimes
3fc7894a0e Set NOSHARED=true, having this binary static makes it much easier to
fix /usr/lib/*.so problems.

Submitted by:	davidg
1995-07-24 01:44:17 +00:00
joerg
1c9b2b7ec7 D*mn, botched my last commit message. :-(
>Description:

  A machine with uptime >1 year appears wrong in the ruptime list

Fixes bin/626: ruptime doesn't like big ...
Reviewed by:
Submitted by:	root@xaa.stack.urc.tue.nl
Obtained from:
1995-07-22 22:28:31 +00:00
joerg
0199748e46 this avaids the "lineoverflow" which you'll always get at 80 column displays
at bootup

Reviewed by:
Submitted by:	graichen@omega.physik.fu-berlin.de (Thomas Graichen)
Obtained from:
1995-07-22 22:16:54 +00:00
joerg
8029f6d68e Change the weekday abbrevaiations to two letters each. This reduces
their ambiguity and makes the output more consistent with other
calendars (e.g. cal in Emacs).

Reviewed by:
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
Obtained from:
1995-07-22 22:14:49 +00:00
wollman
6b93946250 Slightly better message for `ypwhich -x':
was: Use "foo" for "foo.bar"
now: "foo" is an alias for "foo.bar"
1995-07-20 16:30:15 +00:00
peter
ee0afa6a32 When 'w' finds an IP address in the ut_host field, it attempts to do
a gethostbyname() on it.  That can take a long time...  (especially
if the reason the IP address is in there in the first place is because
login/rlogind/telnetd couldn't find it either....)
This patch reduces the gethostbyaddr lookup time to 2 seconds, the idea being
that if the local nameserver knows the answer, it'll answer within that time,
otherwise we dont care... :-)
This change doesn't do anything about whether or not w should do this in the
first place, but at least it will make the current behavior less painful.
Reviewed by:	David Greenman
1995-07-18 05:07:02 +00:00
peter
5c9cd70426 Oops! Andrey pointed out tht setlocale(LC_CTYPE, "") doesn't actually
work for locale's with multibyte characters.  Backing this out....
cvs diff -c -r1.1 -r1.2 main.c | patch -R
Reviewed by:
Submitted by:
Obtained from:
1995-07-18 01:03:46 +00:00
peter
13a2f9572b Make 'more' sensative to the current locale for it's ctype calls.
Reviewed by:
Submitted by:	Thomas Gellekum, with minor cosmetic changes from me.
Obtained from:
1995-07-17 12:37:50 +00:00
peter
acdf972e19 Fix the 'w' command so that the -h option correctly supresses the heading
as per the manual page. Closes PR578.
Reviewed by:
Submitted by:	Kenneth D. Merry
Obtained from:
1995-07-17 04:38:30 +00:00
mpp
e3afff6c25 Fix chpass so that it doesn't advance the password
change and expire dates by 1 day anytime root
edits a user that has a change/expire date set.
1995-07-16 18:49:12 +00:00
joerg
237dca12de 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
wollman
f6045b7610 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
bde
7228eed755 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
bde
d7ba778405 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
bde
9bdc2db62d 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
ats
fb88467034 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
674a6f7eba 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
rgrimes
bc359d41a0 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
jfieber
3eb68ab44e 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
asami
9a52e662ef 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
dfr
666343f7f0 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
85840b05db Include killall. 1995-06-25 18:11:06 +00:00
joerg
95ce79727a This commit was generated by cvs2svn to compensate for changes in r9316,
which included commits to RCS files with non-trunk default branches.
1995-06-25 18:08:27 +00:00
joerg
c2059974cb 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
bde
ff19283b0a usr/ucb -> usr/bin and usr/msgs -> var/msgs. 1995-06-25 03:52:30 +00:00
wpaul
3bc1cf60fd Argh!! Got the arguments in the printf() backwards. 1995-06-24 18:12:17 +00:00
wpaul
87254380ba 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
wpaul
81948f7804 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
ache
57c30762f2 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
ache
904e84eb3b Don't make error on ^<spaces>\n
Obtained from: NetBSD
1995-06-24 17:23:31 +00:00
joerg
dfc3543be3 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
wpaul
9cb3b2d796 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
ache
0f4b3165a0 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
rgrimes
060195fcfb 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
asami
4686908bd3 Rename, lt_LN.ISO8859-1 -> lt_LN.ISO_8859-1.
Reviewed by:	rgrimes
1995-06-19 22:15:35 +00:00
wollman
0c180bc68d Correct spelling mistake: upcated -> updated. 1995-06-19 16:55:16 +00:00
wollman
37654c52db Print out the statistics for cache updates of rtt, rttvar, and ssthresh. 1995-06-19 16:46:21 +00:00
ache
b93930422d Fix parsing SYSV/GNU "include" 1995-06-18 13:08:18 +00:00
ache
5b84039fb3 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
ache
4137dcf51e Fix lseek arg by including unistd.h 1995-06-17 04:07:09 +00:00
ache
0f99c0e047 Rename ISO8859-1 to ISO_8859-1 per RFC1700 1995-06-17 03:25:34 +00:00
ache
ec44130408 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
wpaul
dbffd217e2 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
wollman
5146b472bb Re-write `netstat -g' code to match the 3.5 data structures. 1995-06-13 19:18:40 +00:00
wollman
4dcec62f4c Re-enable netstat now that it compiles again. 1995-06-13 19:18:19 +00:00
wollman
c0dfcf2347 Temporarily disable netstat 1995-06-13 17:47:38 +00:00
rgrimes
1b1ee55538 Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
rgrimes
a14d555c87 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ache
d80ca2327e 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
1cd31e8f9e 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
jfieber
72576f0cde Remove extraneous empty paragraphs (<p></p>) from the output. 1995-05-18 03:01:28 +00:00
dg
3f349e7ec8 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
dg
94d8622ac0 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
ache
c4c737dae7 End of listcan be not marked, fix it
Submitted by: Kai Vorma <vode@snakemail.hut.fi>
1995-05-15 00:03:32 +00:00
ache
5999b41035 Fix false backspace reporting 1995-05-14 22:46:15 +00:00
ache
87576e5822 Fix manpage lies about -P 1995-05-13 22:06:12 +00:00
ache
575a547573 Remove -R from CFLAGS 1995-05-12 13:15:41 +00:00
ache
cd84e329a9 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
jkh
e910183d90 Remove dmenu from the Makefile 1995-05-10 18:22:29 +00:00
jfieber
b7cb1d5c4b Add sgmlfmt. 1995-05-10 00:38:30 +00:00
jfieber
95008556c1 This commit was generated by cvs2svn to compensate for changes in r8397,
which included commits to RCS files with non-trunk default branches.
1995-05-09 23:58:06 +00:00
jfieber
8c1a71988d 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
wollman
715c2b0756 Add GNU-style `-print0' primary. This exists so that one can safely
do `find some-nasty-expression -print0 | perl -n0e unlink' and have all
the files actuallly get deleted.  (Using `xargs' and `rm' is not safe.)
1995-05-09 19:02:06 +00:00
ache
cca9bf2418 Fix line-count overflow, close PR 351
Submitted by:  Edward Wang <edward@edcom.com>
1995-05-09 16:56:23 +00:00
rgrimes
6543524ac5 Fix nested comments for -Wcomment warnings. 1995-05-09 13:13:29 +00:00
bde
c9a627bda8 Fix 3 fatal mismatches in format args involving dbtob() and 10 nonfatal
mismatches.
1995-05-07 08:33:39 +00:00
joerg
99ee13afa5 Make the syntax checks for the format string more strict. The string
"%8*s" is no longer considered to be a valid format description.

This closes PR bin/386.
1995-05-07 07:00:18 +00:00
dg
f27748df16 Added "D" option to usage clause. 1995-05-03 06:55:19 +00:00
dg
8f856ffcfd Added a "-D" option to set the TCP_NODELAY socket option. 1995-05-03 06:25:56 +00:00
ache
6182b2e159 Add yet one popular russian code table 1995-05-01 12:10:51 +00:00
ache
df9d0d2576 Add yet one popular russian code table 1995-04-30 14:45:00 +00:00
jkh
8e2075d3f0 Remove piano. 1995-04-28 17:38:54 +00:00
jkh
a059e660d6 Add piano. 1995-04-28 09:30:54 +00:00
ache
7fa24f3661 Remove setre* hacks, we have working thing now 1995-04-27 19:27:42 +00:00
jfieber
6b420d9cc4 Silence -Wall. 1995-04-27 18:18:58 +00:00
jfieber
97b0148311 Added sgmls 1995-04-27 18:03:29 +00:00
jfieber
fb558ed8ec The sgmls SGML parser. Support for our hypertext documents.
Reviewed by:	Paul Richards, Garrett Wollman
1995-04-27 16:03:47 +00:00
jfieber
8652669286 This commit was generated by cvs2svn to compensate for changes in r8100,
which included commits to RCS files with non-trunk default branches.
1995-04-27 16:03:47 +00:00
wpaul
b72b2e3557 ypbind.c: Major overhaul.
- Moved to a more client-driven model. We aggressively attempt to keep
the default domain bound (as before) but we give up on non-default
domains if we lose contact with a server and fail to get a response
after one round of broadcasting. This helps drastically reduce the
amount of network bandwitdh that ypbind consumes: if a client references
the secondary domain at some later point, this will prod ypbind into
establishing a new binding anyway, so continuously broadcasting without
need is pointless.

Note that we still actively seek out a binding for our default domain
even if no client program has queried us yet. I'm not exactly sure if
this matches SunOS's behavior or not, but I decided to do it this way
since we can get into all sorts of trouble if our default domain comes
unbound. Even so, we're still much quieter than we used to be.

- Removed a bunch of no-longer pertinent comments and a couple of
chunks of #ifdef 0'ed code that no longer fit in to the new layout.

- Theo deRaadt must have become frustrated with the callback mechanism
in clnt_broadcast(), because he shamelessly stole the clnt_broadcast()
code right out of the RPC library and hacked it up to suit his needs.
(Comments and all! :)

I can understand why: clnt_broadcast() blocks while awaiting replies.
Changing this behavior requires surgery. However, you can work around
this: fork the broadcast into a child process and relay the results
back to the parent via a pipe. (Careful obervation has shown that the
SunOS ypbind forks children for broadcasting too, though I can only
guess what sort of interprocess communication it uses. pipe() seems to
do the job well enough.)

This may seem like the long way around, but it's not really that
hard to implement, and I'd prefer to use documented RPC library functions
wherever possible. We're careful to limit the number of simultaneous
broadcasters to avoid swamping the system (the current limit is 5).
Each clnt_broadcast() call only sends out a small number of packets
at increasing intervals. We're also careful not to spawn more than one
bradcaster for a given domain.

- Used clntudp_bufcreate() and clnt_call() to implement a ping()
function for directly querying a particular server so that we can
check if it's still alive. This lets me completely remove the old
bradcasting code and use actual RPC library calls instead, at the
cost of more than a few handfulls of torn-out hair. (Make no mistake
folks: I *HATE* RPC.) Currently, the ping interval is one minute.

- Fixed another potential 'nfds too big for select()' bug: use
_rpc_dtablesize() instead of getdtablesize().

- Quieted gcc -Wall a bit.

- Probably a bunch of other stuff that I've forgotten.

ypbind.8:

- Updated man page to reflect modifications.

ypwhich.c:

- Small mind-o fix from last time: decode error results from
ypbind correctly (*groan*)

yplib.c:

- same as above

- Change behavior of _yp_dobind() a little: if we get back a 'Domain
not bound' error for a given domain, retry a few times before giving
up and passing the error back to the caller. We have to sleep for a
few seconds between tries since the 'Domain not bound' error comes
back immediately (by repeatedly looping, we end up pounding on ypbind).
We retry at most 20 times at 5 second intervals. This gives us a full
minute to get a response. This seems to deviate a bit from SunOS
behavior -- it appears to wait forever -- but I don't like the idea
of perpetually hanging inside a library call.

Note that this should fix the problems some people have with bindings
not being established fast enough at boot time; sometimes amd is started
in /etc/rc after ypbind has run but before it gets a binding set up. The
automounter gets annoyed at this and tends to exit. By pausing ther YP
calls until a binding is ready, we avoid this situation.

- Another _yp_dobind() change: if we determine that our binding files
are unlocked or nonexistent, jump directly to code that pokes ypbind
into restablishing the binding. Again, if it fails, we'll time out
eventually and return.
1995-04-26 19:03:16 +00:00
phk
81382a3eb2 Do kernels up to 2Mb. 1995-04-25 05:27:04 +00:00
nate
a1afd3bc97 This got ignored as a shared object during the import. Add it back as
it's necessary for the doc process.
1995-04-22 06:07:48 +00:00
wpaul
a44587d41a Make Rod Grimes's life a little simpler: replace all exit(1)'s with
seperate exit values depending on the error. (The error values are
#defined and commented near the top of the file for clarity). This
is to help write a small bit of shell script for /etc/rc that calls
ypwhich a few times after ypbind is invoked to make sure we're
actually bound to a server before proceeding (if we aren't, the
automounter can fail if it's using NIS maps).
1995-04-22 00:23:59 +00:00
wpaul
be813a3b68 small NIS binding fixes:
ypbind.c: if a client program asks ypbind for the name of the server
for a particular domain, and there isn't a binding for that domain
available yet, ypbind needs to supply a status value along with its
failure message. Set yprespbody.ypbind_error before returning from
a ypbindproc_domain request.

yplib.c: properly handle the error status messages ypbind now has the
ability to send us. Add a ypbinderr_string() function to decode the
error values.

ypwhich.c: handle ypbind errors correctly: yperr_string() can't handle
ypbind_status messages -- use ypbinderr_string instead.
1995-04-21 18:04:36 +00:00
phk
92bb6593c4 Use port 21 as default if getservbyname fails to find it for us. This let
us remove some crud from the install-procedure.
1995-04-20 05:38:58 +00:00
wpaul
f8bb0b05f3 Undo the stupidity I inflicted on these files and replace it with
some (hopefully) less offensive stupidity:

If we detect that a user has loaded a module that fails to initialize
itself correctly, panic. There really isn't a safe way to recover from
something like this; we can't know that the module is bad until after
the entry point is called, by which time it's too late to do anything
about it.
1995-04-20 05:08:53 +00:00
joerg
a35b9f7d67 Make mt(1) orthogonal: now that we print the densities as strings
instead of hex, make it accept density names for input, too.
1995-04-18 22:27:43 +00:00
wpaul
f1cc0e968b Small fixups to use LM_UNKNOWN type, also fix slight formatting
offset problem in banner printf().
1995-04-18 02:19:17 +00:00
joerg
e35369434b Round #1 of my st(1) -> mt(1) merge. All the commands should be
covered now, and i've attempted to give textual representations
instead of magic numbers.

The st(4) driver still misses some pieces; i'm going to implement the
EOM functionality RSN.

Any takers for the MTCOMP command?  Seems to have never been implemented.
1995-04-17 21:55:11 +00:00
rgrimes
e7dcc3178d Missing ${DESTDIR} on chflags commands added. 1995-04-17 19:15:38 +00:00
ache
7de0762f0a 1) kill temp diver upon exit
2) add logical ops, fix ! precedence, implement unary +, fix exp
Obtained from: NetBSD
1995-04-16 23:31:35 +00:00
rgrimes
9f2e93e57d Fix spelling error that keeps this from compiling with KERBEROS & SKEY
defined.

Submitted by:	Mark Murray <mark@grondar.za>
1995-04-16 20:00:21 +00:00
ache
f2a874e028 Merge. 1995-04-16 14:26:18 +00:00
ache
dabd8d475d Upgrade. 1995-04-16 14:13:48 +00:00
ache
7ef8f4aa31 This commit was generated by cvs2svn to compensate for changes in r7889,
which included commits to RCS files with non-trunk default branches.
1995-04-16 14:13:48 +00:00
bde
ea2ddb19e5 Don't crash when there are too many items to fit on one screen. 1995-04-15 23:10:59 +00:00
ache
01787c4b0d Fight over non-working setruid 1995-04-15 22:08:10 +00:00
phk
7be871777e Added kzip in i386 section 1995-04-15 08:19:16 +00:00
phk
1978ca6d73 This program to compress a kernel with. You loose all the symbols, so
usability is limited.  Very useful on fixit floppies &c.

Obtained from:	Linux via 386BSD
1995-04-15 08:18:20 +00:00
dg
b824780548 Install with default BINOWN (as it once used to be). 1995-04-15 03:31:19 +00:00
dg
b0ecb5429e Install setgid kmem rather than setuid root. The problem with procfs that
was breaking this before has been fixed.
1995-04-15 03:25:52 +00:00
wollman
ba0a7250f9 Add `-s' flag to permit selection of devices in accordance with their
state (after all, who wants to be offered a menu of devices which
weren't found?).
1995-04-14 18:33:44 +00:00
ache
8d2c05729d Add missing -lmytinfo, hits when compiled -static
Add DPADD
1995-04-14 16:13:28 +00:00
ache
483a6aedb3 Move digits before letters 1995-04-14 15:56:32 +00:00
wollman
decc5b08a8 Add devmenu(1). 1995-04-13 21:11:53 +00:00
wollman
cb57ef82b7 Another sample devconf application. This one's a menu of devices; read the
man page.
1995-04-13 21:11:01 +00:00
wollman
e67b64e7bc Disallow Kerberos when S/Key is required. Fixes PR #339.
Submitted by: Paul Traina <pst@Shockwave.com>
1995-04-13 15:20:35 +00:00
ache
3ec57b4b68 Upgrade. 1995-04-12 02:42:39 +00:00
ache
bf8d66ec75 Fix output field range
Submitted by: edward@edcom.com
1995-04-11 18:50:51 +00:00
dg
f2eb317632 Added #include <sys/queue.h> 1995-04-10 00:38:15 +00:00
dg
87a5fb27fc Updated for 4.4BSD queue macros. (Oops, I forgot to commit this last night;
sorry Jordan).
1995-04-09 15:21:08 +00:00
dg
ed7f6aebaf That's what I get for doing things in a hurry...applied up-to-date patch
to this file rather than old one (before I renamed the structure element).
1995-04-09 15:12:21 +00:00
dg
f070f04029 Oops, remove some chaff from previous commit. 1995-04-09 05:34:54 +00:00
dg
aef6dbd77b Updated netstat to grok 4.4 QUEUE macros now being used to like the PCBs
together.
1995-04-09 05:33:17 +00:00
ache
559a7b68f3 Remove unneded substitutes 1995-04-08 21:51:26 +00:00
ache
ea6c577abe Update controls & remains 1995-04-08 17:34:15 +00:00
ache
59f4703522 Remove digrams to not confuse sorting 1995-04-08 17:08:45 +00:00
jkh
f11c1b6364 The negative expire times shown by netstat are confusing and ugly.
Destination      Gateway            Flags     Refs     Use     Netif Expire
199.182.75.128   link#1             UC          0        0       ed0 -842660
Submitted by:	John Capo <jc@irbs.com>
1995-04-06 06:09:44 +00:00
jkh
02d736ad6e It has always bugged me that ps and w did not display su with tcsh
properly.  I know, tcsh is not a "Real Shell".

jc       p2 :0.0             Tue04PM     - -u (tcsh)
                                           ^^^
7173 p2  S+     0:01.33 -u (tcsh)
			^^^

Submitted by:	John Capo <jc@irbs.com>
1995-04-06 06:06:47 +00:00
joerg
cb8a3fb878 Sed dumps core when linked with some coalescing malloc because it
doesn't initialize malloced structure.

Submitted by:	vode@hut.fi
1995-04-05 22:55:27 +00:00
nate
a57b34d67e This is the 90's, ask the user for a Subject by default when sending mail. 1995-04-03 05:40:54 +00:00
bde
e60505aff7 Include <stdlib.h> so that malloc() is declared. 1995-04-02 19:01:07 +00:00
ache
f7680ac091 Finally restore my original MAIL fix after all junk patches. 1995-04-02 00:16:09 +00:00
wpaul
7bf57501ae Remove references to yppasswd_xdr.c: the stuff in this file already exists
in librpcsvc. Add -lrpcsvc to LDADD instead.
1995-04-01 19:19:15 +00:00
ats
53c5ea78d4 Delete a second getenv("MAILPATH") that happens immediately after a first
try. Doesn't make sense.
1995-04-01 15:50:04 +00:00
jkh
a772acc31c Greatly clean up the Makefiles and add a Makefile.inc to more obviously
advertise tip's choice of location and perms.
1995-04-01 09:14:37 +00:00
jkh
bf8676024d I must have been very sleepy last night, sigh..
1. Nuke out the aculib files that crept in somehow by mistake.
2. Fix the ${.CURDIR} path so that this stuff actually compiles.
   It actually compiled for me before the commit, but I must have had
   something short-cutting the bug.
1995-03-31 21:04:48 +00:00
jkh
4eaa6129d2 Back out the previous commit. 1995-03-31 11:48:35 +00:00
jkh
3242e11e95 Tom Gray's new tip changes to support a modem capabilities database and
fixes to many assorted bugs and misfeatures.
Submitted by:	Tom Gray - DCA <dcasba@rain.org>
1995-03-31 11:47:39 +00:00
jkh
72a0829984 I noticed that the current version of ncftp dos not do the very useful
job af warning me about mail as my work version does. This patch will
will fix this for bash(1) if MAILPATH is exported:
Submitted by:	Mark Murray <mark@grondar.za>
1995-03-31 07:02:49 +00:00
jkh
821325d749 Add gencat to Makefile
Obtained from: NetBSD
1995-03-30 12:49:25 +00:00
jkh
1e4beef5c2 Add the gencat command for creating message catalog fodder for the new
catgets* routines.
Obtained from: NetBSD
1995-03-30 12:49:09 +00:00
ache
8584f1d494 Fix default mailpath 1995-03-30 01:13:41 +00:00
dg
8bdafddcb6 From Mark Murray:
I got irritated with not seeing the interrupt numbers in a (crowded)
"systat -vmstat" display, so I fixed it. Here is a patch to please be
applied in src/usr.bin/systat
1995-03-29 00:10:14 +00:00
ache
b7b8244a6f Don't allow talk own messages wrap around on the screen, just
scroll them like normal user input/output does.
1995-03-28 19:48:45 +00:00
ache
a779ba44c4 Fix erase determination code: don't look at
system defaults which is always the same
1995-03-27 03:42:21 +00:00
wpaul
1b63b57e4b Submitted by: Sebastian Strollo <seb@erix.ericsson.se>
Use hosts.byname as the alias for 'hosts' instead of hosts.byaddr.
1995-03-25 23:26:54 +00:00
joerg
3376ef4ddb Make finger(1) accept "cua" to be also a tty, and use the suffix instead
of the very meaningful string "cu" to describe the tty.
1995-03-25 18:15:40 +00:00
dg
c510e7263f Removed object lookup/hit count and changed the order of things a little. 1995-03-25 08:44:48 +00:00
dg
04b8eb4618 Removed cnt.v_nzfod...we don't support it in the kernel. 1995-03-25 06:39:47 +00:00
dg
e859f0ca16 Removed printing of cnt.v_nzfod: we don't implement this in the kernel. 1995-03-25 06:11:43 +00:00
gibbs
f5c5f067b7 Add recognition of HP Printer Job Language (PJL) commands. 1995-03-24 01:17:29 +00:00
ache
976a4f67ae Bug fixed: even root was unable to edit restricted fields 1995-03-21 15:30:59 +00:00
ache
5955de08b0 Fix wrong separator output
Submitted by: julian
Obtained from: newsgroup?
1995-03-21 00:26:32 +00:00
nate
e6facc0d0d Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 17:36:30 +00:00
nate
d5bfc12605 Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 17:18:15 +00:00
phk
4a0584d64d Fix the Name-cache counters. I didn't realign the negative hits. 1995-03-18 08:55:15 +00:00
wollman
5569af19d9 Fix bonehead formatting error. 1995-03-16 21:43:03 +00:00
wollman
b2dad10ffa Print out the new flags. 1995-03-16 20:29:11 +00:00
wollman
0c139f325a Print out flags as text rather than a number. 1995-03-16 18:37:47 +00:00
wpaul
9f506b229f According to stdlib.h, malloc and realloc return void * but error_table.y
declares them to return char *. For some reason, this causes no problems
with the old compiler tools, but doing a 'make world' with gcc 2.6.3 in a
seperate DESTDIR got me this error:

yacc -d /usr/src/usr.bin/compile_et/error_table.y
cc -O2 -I. -I/usr/src/usr.bin/compile_et/../../lib/libcom_err   -I/mnt/usr/include -c y.tab.c -o error_table.o
In file included from /usr/src/usr.bin/compile_et/et_lex.lex.l:11,
                 from /usr/src/usr.bin/compile_et/error_table.y:233:
/mnt/usr/include/stdlib.h💯 conflicting types for `malloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `malloc'
/mnt/usr/include/stdlib.h:104: conflicting types for `realloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `realloc'
*** Error code 1

Stop.

Declaring malloc and realloc to return void * fixes this. It could be that
the new gcc is a bit more picky about these things.
1995-03-15 19:05:28 +00:00
phk
23cf905bbe Report the negative hits in the Namei section. 1995-03-12 01:58:18 +00:00
phk
8fc888c0b8 Don't use curses until initialized. 1995-03-12 01:47:08 +00:00
ache
76821a692c Fix syscmd() output out of sync
Submitted by: smp@clem.systemsix.com
1995-03-11 16:57:54 +00:00
dg
7ca6fdcf9e Changes to support printing stats for the 'cached pages'.
Submitted by:	John Dyson
1995-03-10 20:07:21 +00:00
ache
b3bfdc6852 Merge. 1995-03-09 17:40:56 +00:00
ache
b6490b2aed Upgrade. 1995-03-09 17:28:46 +00:00
ache
1fcb4ac137 This commit was generated by cvs2svn to compensate for changes in r6962,
which included commits to RCS files with non-trunk default branches.
1995-03-09 17:28:46 +00:00
nate
6a7b9a8a9f Removed redundant function to64() which also exists in local_passwd.c 1995-03-08 18:05:50 +00:00
nate
44a74d9438 Fix rpcgen so that generated files are written to the current working
directory (instead of the same directory as the source files) and that
#includes in those files do not contain the path to the source file.

Obtained from: J.T. Conklin via NetBSD
1995-03-04 17:47:50 +00:00
paul
bcd3489bb2 Disable fib 1995-03-01 08:32:42 +00:00
ache
1713f4a424 Better collate table for koi8-r
Submitted by: alex@elvisti.kiev.ua
1995-02-28 23:38:20 +00:00
guido
5ed0eb5412 Fix completely broken find behaviour:
a find -foo -o -bar would behave like find -bar. The same for -a
This broke (among others) ./etc/security.

Obtained from: NetBSD
1995-02-27 20:52:36 +00:00
dg
51f954fe2b Changed "mapped pages in use" to "mbuf clusters in use". 1995-02-23 19:08:11 +00:00
rgrimes
b85de76f15 Fix spelling error (scipt -> script).
Submitted by:	<jhawk@MIT.EDU>
Obtained from:	NetBSD-bugs mailling list
1995-02-23 17:46:35 +00:00
pst
0cbe427e21 Remove watch(8) 1995-02-23 00:27:08 +00:00
pst
376cca86d0 Rewrite manual page to use mandoc correctly and fix english grammar. 1995-02-22 23:47:51 +00:00
ache
a2e60d0808 Move mixer to usr.sbin 1995-02-22 01:36:12 +00:00
phk
bdd3283357 add "fib"
Reviewed by:	phk
Submitted by:	Mark Murray <mark@grondar.za>
Obtained from:
1995-02-21 04:41:03 +00:00
wollman
02a1b382cf Not sure why this one was -lcompat since it doesn't reference anything in
it.
1995-02-21 04:35:43 +00:00
wollman
964a1c2ea7 Use POSIX.2 regular expressions, kill libcompat. 1995-02-21 04:32:55 +00:00
wollman
27a28f2789 Use tcflush(), eliminate libcompat. 1995-02-21 04:15:15 +00:00
wollman
628595ee58 more now uses POSIX regular expressions and no longer needs libcompat. 1995-02-21 03:46:48 +00:00
ats
413cc276ed Submitted by: Ollivier ROBERT roberto@keltia.frmug.fr.net
There is a typo in the include file specification in the  man page  of
time(1).
1995-02-18 20:44:55 +00:00
jkh
6d90dafba0 Remove bogus reference to snp.4. Somebody kinda screwed up their move! :) 1995-02-18 17:10:40 +00:00
smace
5001befdac Correct the grammar for the label of the number of users.
It is plural when zero and >1 users are logged in.
1995-02-18 08:24:16 +00:00
ugen
945e049179 oops..here is the manpage 1995-02-17 18:06:11 +00:00
ugen
17d7743fc9 Manpage for snoop device itself. 1995-02-17 17:53:52 +00:00
ache
f279fe8d6d colldef added 1995-02-17 17:37:55 +00:00
ache
9c3d4683ed This commit was generated by cvs2svn to compensate for changes in r6527,
which included commits to RCS files with non-trunk default branches.
1995-02-17 17:29:50 +00:00
ache
c6349924aa collate tables compiler
Submitted by: alex@elvisti.kiev.ua
1995-02-17 17:29:50 +00:00
ache
e0c079760d collate tables compiler
Submitted by: alex@elvisti.kiev.ua
1995-02-17 17:29:50 +00:00
ugen
6ad7ac26ed Add manpage to makefile 1995-02-17 16:41:43 +00:00
ugen
763438f018 Watch fresh-made manpage.. 1995-02-17 16:40:32 +00:00
ugen
d722999cd2 This is watch - programm to work with /dev/snp,
it still lacks manpage-i will commit it today later.
For now to test try: watch [ttyname] :)
1995-02-17 14:36:03 +00:00
ugen
13df0148b9 Added to makefile watch - snooping programm to work
with /dev/snp
1995-02-17 14:34:21 +00:00
bde
5ab11f181a Fix checking of directory access for "/foo". The parent directory is
"/", not "".
1995-02-16 11:42:36 +00:00
ache
8f61c0d78e mixer added 1995-02-15 17:39:52 +00:00
dg
6a684f71bc >Description:
The "strings" program chokes if you try using "-n".

>How-To-Repeat:

	Try "strings -n SOMENUMBER SOMEFILE".

>Fix:

Here's a "diff -u" patch that corrects the problem.

Submitted by:	Lon Willett <lon%softt.uucp@math.utah.edu> via NetBSD
1995-02-15 02:47:47 +00:00
rgrimes
ca5902c334 Remove usage of LINKS and LN_FLAGS=-s, this does not do the correct thing
for symbolic links when $DESTDIR is set.

Add afterinstall: target to handle symbolic link creation.
1995-02-14 21:08:45 +00:00
wpaul
eb86e8c1e8 Changed passwd's Makefile to use the built-in LINKS mechanism to create
the symlinks for yppasswd & friends (we still can't use hard links
because passwd is installed immutable). This would have been simpler
if the LN_FLAGS variable hadn't chosen to wait until now before leaping
out of the /usr/share/mk directory and biting me in the ass. (And thus,
I was enlightened.)
1995-02-14 15:38:13 +00:00
wollman
d48b4f1df6 Make netstat report the correct state for T/TCP.
Submitted by: Andras Olah <olah@cs.utwente.nl>
1995-02-14 03:09:51 +00:00
ache
0355a4308c Merge with eBones stuff
Submitted by: mark@grondar.za
1995-02-11 18:20:06 +00:00
jkh
ef60271dc0 Fixes for chpass.
Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
1995-02-09 11:14:39 +00:00
jkh
6b720ef9d5 Add y.tab.h to CLEANFILES. 1995-02-09 00:24:00 +00:00
jmz
d73fc79374 Correct a bug in the P function: according to 7th edition UNIX (tm), the
newline must be part of the pattern space i.e. `echo a|sed -e P' must print
a
a
and not
aa
This is consistent with gnu sed, SunOS, Ultrix (and probably others!)
1995-02-06 00:14:50 +00:00
wpaul
856e9ec0e9 cleaned up and modified slightly to reflect changes 1995-02-01 23:47:04 +00:00
wpaul
e2d7ebccd1 Cleaned up Makefile a little, added man page links from ypchsh.1 ypchfn.1
and ypchpass.1 to yppasswd.1. Also fixed a typo: ypshfn != ypchfn.
1995-02-01 23:46:20 +00:00
wpaul
ca503e6391 Changed passwd/yppasswd's Makefile to create all symbolic links instead
of hard links: since passwd is installed immutable, an attempt to make
a hard link to it during a 'make install' would fail. I didn't notice
this conflict because my /usr directory is an NFS filesystem mounted from a
SunOS server, so the special file mode flags had no effecti when I tested
everything on my machine. Live and learn.
1995-02-01 05:55:18 +00:00
paul
41f11011a1 Fix calculation of default field heights and a bug in the setting
of form dimensions.
1995-02-01 04:08:19 +00:00
paul
0f25422ca8 Clean up the parser, allow fields to be specified inline and
generally make the forms language much less verbose.

Add height option for fields and calculate sensible defaults.
1995-02-01 03:22:17 +00:00
bde
410788f921 Fix off by one error in calculation of `mday' (months start at 1).
Jan 31 gave Jan 30, often for next year.
1995-01-31 17:54:39 +00:00
jkh
0c3392596f Add dmenu. 1995-01-31 13:53:44 +00:00
wpaul
005b0f04d8 Obtained from: The NYS project
This is the first round of changes to incorporate YP server functionality
into FreeBSD. This particular change allows passwd to change either the
local or NIS password, as well as the NIS GECOS and shell information.

Essentially, I've taken passwd(1) and yppasswd from the yppasswd-0.5
distribution (which is part of the NYS project -- a project to provide
a GNU GPL'ed suite of NIS tools) and rammed them into each other
at high speed. I've tried my best to make this co-exist with the
Kerberos stuff, but since I don't run Kerberos I don't have an easy
way to verify that it all works. If you choose any Kerberos flags
then the YP checks should be bypassed, but that may not be enough.
I'll modify it some more if it turns out I broke something. For now,
support for localand NIS passwords is pretty solid:

- If you simply type 'passwd,' the program checks to see if you exist
  in the local pwd.db database. If not, you get bounced to YP.

- If you try to force local functionality with the -l flag and you
  don't exist locally, you get an error.

The -y flag can be used to force YP functionality. -f and -s let you
change your full name and shell (respectively). -f *and* -s let you
change all of your 'account information.'

ypchfn, ypchsh, yppasswd and ypchpass are all links to passwd.
1995-01-31 08:34:16 +00:00
jkh
a86f9e0ecf Unify the copyright notice. 1995-01-30 22:21:29 +00:00
asami
27a6b3e94f Cleanup.
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-01-30 17:49:19 +00:00
ache
b326f90c97 Fix owner/mode for installed data 1995-01-30 15:34:06 +00:00
ache
d4a8c7af3a Remove creating dirs & symlinks, it is done by mtree now 1995-01-30 15:29:47 +00:00
paul
de932de1a9 Update the parser to handle the color specifications and new attr
options.
1995-01-30 02:43:28 +00:00
phk
8da1f09e8e add file2c 1995-01-29 00:51:38 +00:00
phk
44d9c7e9b3 This is a small little program used to execute a bad practice a clean way :-)
It will read a file on stdin and write it as decimal integers on stdout,
this is useful for embedding files in c-sources.

There are a few places where this is needed, and this is a better way than
the current practice of hand-editing the sources.

The command:

date | file2c 'const char date[] = {' ',0};'

will produce:

const char date[] = {
83,97,116,32,74,97,110,32,50,56,32,49,54,58,52,55,58,51,51,32,80,83,84,
32,49,57,57,53,10
,0};

The manual page is 2 lines longer than the source :-)
1995-01-29 00:49:57 +00:00
asami
afd6259b60 Add a -s' flag for silent' processing. Make the script return 0 for
success and 1 for failure.  Describe the options in manpage.
1995-01-28 17:35:56 +00:00
jkh
36ea0db5c6 Put in a much less bogus Makefile on advice from Bruce. 1995-01-28 06:01:18 +00:00
dg
7f0d63876d Fixed coredump when issuing d$ on a blank line. Fixes bin/191. 1995-01-28 01:58:14 +00:00
jkh
17c2207d91 Use the better perl script version of which submitted by Wolfram.
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-01-26 21:49:54 +00:00
ache
6dfc1cf81e LIBFORMS added to DPADD 1995-01-25 20:29:32 +00:00
ache
1fc619b8ea LIBS changed to DPADD & LDADD 1995-01-25 20:28:39 +00:00
jkh
7ca0586653 Add which. 1995-01-25 19:19:06 +00:00
jkh
4a942b9666 This commit was generated by cvs2svn to compensate for changes in r5887,
which included commits to RCS files with non-trunk default branches.
1995-01-25 19:18:33 +00:00
jkh
00f6b2130e Bring in Joerg's which command. It's small, it's simple, it will stop
people (like me! :) from whining!
Submitted by:	joerg
1995-01-25 19:18:33 +00:00
paul
3b2b35819c More parser fixes. Store attributes properly for each field and
don't emit a second declaration unless it's different to the default.
1995-01-25 07:56:10 +00:00
paul
7f29893b63 Quash another bug where if no link alias is specified a
duplicate declaration was emitted.
1995-01-25 07:10:53 +00:00
paul
cd6576a65d Correct default calculation of menu field widths. 1995-01-25 06:32:40 +00:00
paul
44a98931df Fix a serious bug where changes to a field changed all fields
in the forms that used the same field declaration.
1995-01-25 06:04:02 +00:00
paul
62f02f0120 Improve the forms language quite a bit. Most things now
default to sensible values so you don't have to spell out
every little detail for every field. Also, auto-detect
the field type from the syntax.
1995-01-25 03:27:34 +00:00
ache
c74d514565 Merge. 1995-01-24 00:41:11 +00:00
ache
91f1983c7d Upgrade. My recent fix applied by author. 1995-01-24 00:37:11 +00:00
ache
747a6d170b This commit was generated by cvs2svn to compensate for changes in r5825,
which included commits to RCS files with non-trunk default branches.
1995-01-24 00:37:11 +00:00
jkh
2dab142d47 Bring in a number of changes from NetBSD's make, fixing quite a few
problems in the process:

1. Quoting should work properly now.  In particular, Chet's reported bash
   make problem has gone away.
2. A lot of memory that just wasn't being free'd after use is now freed.
   This should cause make to take up a LOT less memory when dealing with
   archive targets.
3. Give proper credit to Adam de Boor in a number of files.
Obtained from: NetBSD (and Adam de Boor)
1995-01-23 21:03:17 +00:00
wollman
ba9388f7cc Don't print protocol-cloned routes by default (enabled by -a flag).
Print non-zero expiration timers.
Use err(3) for error reporting.
1995-01-23 20:19:16 +00:00
paul
26f0276b31 A forms interface builder. Basically, it reads a forms spec file and
spits out a frm.tab.h file with all the definitions needed by the
libforms interface.
1995-01-23 14:43:38 +00:00
bde
d6e176c25f Update comments about MISSING and GNU versions. 1995-01-21 14:47:33 +00:00
bde
99553d78fd Don't default to -g in ${CFLAGS}. Developers can still use `make g=-g ...'
for debugging.  The default ${CFLAGS} still clobbers the system default
of -O2 to -O.
1995-01-21 14:41:45 +00:00
bde
ac917deba6 Use exactly the same checks in excluded() as in inlist(): ignore stabs and
stringless symbols in excluded(); check for too-small (nonzero) string table
offsets in inlist().
1995-01-21 10:24:18 +00:00
ache
546fa44779 Better protection against too long pathes and 8bit controls in file
names, locate dumps core instead
1995-01-21 05:50:50 +00:00
ache
bf096f839f Not go to interactive mode, if login failed for URLs, just
exit(1). Dedicated to Jordan.
1995-01-21 01:37:22 +00:00
wollman
cc0c7809c4 In the non-PARANOID case, make sure to set `notickets' to 0 sothat login.c
doesn't complain.
1995-01-20 23:07:10 +00:00
wollman
9af3d75b4d Update for new kpasswd interface. 1995-01-20 22:03:36 +00:00
wollman
b1b8413d9a Added mk_cmds. 1995-01-19 22:31:17 +00:00
wollman
ece7af0e56 Port to FreeBSD. (Sorry there's no man page yet.) 1995-01-19 22:27:58 +00:00
wollman
13f4ae2eb9 This commit was generated by cvs2svn to compensate for changes in r5719,
which included commits to RCS files with non-trunk default branches.
1995-01-19 21:30:25 +00:00
wollman
3c7d166730 Other part of SIPB subsystem library, the program to make command tables. 1995-01-19 21:30:25 +00:00