Commit Graph

867 Commits

Author SHA1 Message Date
Peter Wemm 62c10d2dcb symorder appears to have been designed to run on executable files
only, as it payes no attention to the relocation table (which
references the symbols).

As a result, running "symorder -c" to clean up the visibility of a LKM
".o" file (as is done in the new bsd.kmod.mk) totally screws up the
relocation table, making the LKM file unloadable. (ld: bogus
relocation record)

This is a pretty crude fix - I've changed symorder so that when
running in "cleanup" mode, it disables the reordering which was
screwing up the relocation table.  I'm sure there is a better fix, but
I didn't have the energy.  Feel free to fix this hack, probably by
renumbering the symbol indexes in the relocation table.
1995-10-28 12:27:20 +00:00
Paul Traina 7700fd358f Close docs/43 manpage for keysu is missing 1995-10-28 08:07:38 +00:00
Julian Elischer 661e19c924 Submitted by: Mike Mitchell
oops.
forgot this file then went to bed..

sorry
1995-10-27 20:18:22 +00:00
Adam David 513822dddc - #if defined(TF_NEEDSYN) && defined(TF_NEEDSYN)
+ #if defined(TF_NEEDSYN) && defined(TF_NEEDFIN)
1995-10-27 12:32:07 +00:00
Julian Elischer 09fa32d305 Submitted by: john hay
patches to merge the two IPX packages to work with each other and to
not break make-world :)

IPXrouted should be working now, (or at least compiling) :)
1995-10-27 10:48:31 +00:00
Andrey A. Chernov 3fb8ee222b Add setlocale LC_TIME 1995-10-26 22:58:56 +00:00
Andrey A. Chernov f1e4dd10de Add setlocale LC_CTYPE 1995-10-26 22:26:15 +00:00
Andrey A. Chernov 5ccbfb26fb Add setlocale LC_CTYPE 1995-10-26 22:16:45 +00:00
Julian Elischer cc6a66f20e Reviewed by: julian and jhay@mikom.csir.co.za
Submitted by:	Mike Mitchell, supervisor@alb.asctmd.com

This is a bulk mport of Mike's IPX/SPX protocol stacks and all the
related gunf that goes with it..
it is not guaranteed to work 100% correctly at this time
but as we had several people trying to work on it
I figured it would be better to get it checked in so
they could all get teh same thing to work on..

Mikes been using it for a year or so
but on 2.0

more changes and stuff will be merged in from other developers now that this is in.

Mike Mitchell, Network Engineer
AMTECH Systems Corporation, Technology and Manufacturing
8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000
supervisor@alb.asctmd.com
1995-10-26 20:31:59 +00:00
Andrey A. Chernov d1b2ad1a54 Change locale to LC_ALL, there is no bitmask 1995-10-26 11:03:08 +00:00
Andrey A. Chernov 8bbd907273 Add setlocale LC_CTYPE 1995-10-24 06:15:05 +00:00
Andrey A. Chernov 628b3a7935 Add setlocale LC_CTYPE 1995-10-24 06:02:24 +00:00
Andrey A. Chernov f34b5369b7 Remove wrong LC_TIME env. usage 1995-10-24 05:56:45 +00:00
Andrey A. Chernov 6e9804553e Add setlocale LC_TIME 1995-10-24 05:37:15 +00:00
Andrey A. Chernov eb1d32b9a3 Add setlocale LC_CTYPE 1995-10-24 05:18:36 +00:00
Andrey A. Chernov 238d3ffda9 Add setlocale LC_TIME 1995-10-24 05:09:54 +00:00
Andrey A. Chernov dc675fc2e7 Add setlocale LC_TIME|LC_CTYPE 1995-10-24 04:18:45 +00:00
Andrey A. Chernov f6d3b9ac8f Add setlocale LT_TIME 1995-10-24 04:09:49 +00:00
Andrey A. Chernov 965f310ce1 Add setlocale LC_TIME 1995-10-24 04:06:02 +00:00
Andrey A. Chernov baf72ec10c Add setlocale LC_TIME|LC_CTYPE 1995-10-24 03:06:09 +00:00
Peter Wemm 67f3063c0e Attach dnsquery to Makefile 1995-10-23 16:44:22 +00:00
Peter Wemm ecc3153d73 Make it compile..
This is part of bind-4.9.3, but was missed in previous imports. It replaces
the old nstest and nsquery programs.
1995-10-23 16:38:17 +00:00
Peter Wemm d8ae52dc79 Merge beta26 changes 1995-10-23 16:07:56 +00:00
David Greenman 357ab62b03 Add -c to usage output. 1995-10-23 15:19:10 +00:00
Peter Wemm fd39459a14 Merge beta26 changes 1995-10-23 14:07:51 +00:00
Peter Wemm 6bfa3896ed This commit was generated by cvs2svn to compensate for changes in r11719,
which included commits to RCS files with non-trunk default branches.
1995-10-23 13:36:47 +00:00
Peter Wemm 471f05ab65 Import tools from bind-4.9.3-beta26 (update beta24) 1995-10-23 13:36:47 +00:00
Jordan K. Hubbard 24249ac14f Don't assume that $HOME is always set. 1995-10-22 14:10:08 +00:00
Andrey A. Chernov e27e7f980f Link LC_COLLATE inside dirs instead of dirs linking 1995-10-22 00:58:41 +00:00
Andrey A. Chernov c3b974751f Link LC_CTYPE inside dirs instead of dirs linking 1995-10-22 00:53:56 +00:00
Joerg Wunsch 0859bf6ff4 Finally catch up with the Frenchmen, and create the German message
catalog.
:-)
1995-10-21 23:47:43 +00:00
Poul-Henning Kamp b8ab406ba1 Remove declamations which <ctype.h> already does for us. 1995-10-21 22:02:10 +00:00
Poul-Henning Kamp 37782cea67 Added #include <ctype.h> 1995-10-21 21:08:43 +00:00
Bruce Evans 49f544b572 Return early in printreg() when the pointer is NULL. For FreeBSD, the
strings describing the drive status and error bits are so deficient
that the pointer is always NULL.

Reported by:	Philippe Charnier <charnier@lirmm.fr>
1995-10-21 08:51:01 +00:00
Poul-Henning Kamp 195d393a20 Recognize Acrobat files too. 1995-10-19 15:19:03 +00:00
David Greenman c83d3f4574 Fixed a bug that caused last(1) to be extremely slow in some cases, and
made other performance improving changes. This improves the performance
of last(1) by as much as 32 times in some cases, and in more typical cases
is about twice as fast.
Added a BUGS section to the manual page to describe the behavior of last(1)
when a login shell terminates abnormally (and thus doesn't write a logout
record to the wtmp file).
1995-10-17 18:26:43 +00:00
Garrett Wollman 81e236a01c Don't use printf() for simple strings because it is slow. Closes PR 783.
Submitted by:	Wolfram Schneider <wosch@freebsd.first.gmd.de>
1995-10-16 18:32:35 +00:00
Andrey A. Chernov 7ff83380e0 Fix ALPHA range 1995-10-15 16:53:43 +00:00
Andrey A. Chernov 283f4b8de4 Various fixes mostly for letters range
Obtained from: partially from Kaleb S. Keithley <kaleb@x.org> patch
1995-10-15 16:49:16 +00:00
Andrey A. Chernov d70b2d75d4 XDIGIT range fixed. This change is cosmetique and not affect anyone,
because ASCII locale used for isdigit and isxdigit in any case.
1995-10-15 15:50:19 +00:00
Poul-Henning Kamp 65f29761ba Add a '-c' option for cleaning namelists of various things. 1995-10-15 14:31:10 +00:00
Garrett Wollman 231bfb095d In TCP statistics, display new statistic about how many resends were
initiated as a result of the Path MTU discovery process.
1995-10-13 20:01:48 +00:00
Garrett Wollman eb034ce46a Make it possible to enable WHEELSU from /etc/make.conf. 1995-10-12 17:25:58 +00:00
Poul-Henning Kamp f96ffb5acb Another program depending on zero'ed malloc.
Submitted by:	Kai Vorma <vode@snakemail.hut.fi>
1995-10-10 10:03:48 +00:00
Peter Wemm 39c17c43c5 Reverse out some of the previous commit I did, which shortened the
finger output from 80 to 79 characters to stop the syscons
every-second-line-is-blank problem.

Also, redo the TTY column mod so that it steals one of the (usually) two
blank spaces from the before the tty column rather than from the office
phone number.

This means the office phone field width in the short finger is back to 15
characters instead of 13.
1995-10-10 02:31:09 +00:00
Poul-Henning Kamp b6078f2906 We wouldn't want to kill init if our parent died...
Spotted by:	davidg
1995-10-09 09:51:17 +00:00
David Greenman 3c0d1798b1 KNFize last change. 1995-10-09 08:17:08 +00:00
David Greenman 342e26f662 KNFize. 1995-10-09 08:13:09 +00:00
Bruce Evans de264c2bd8 Add options -C (same as -c except for preserving the modification
time of the target if the target file is the same as the source),
-d (debug), and -p (same as -C except for preserving the modification
time of the source if the target doesn't exists or is different from
the source.

Use library err() functions instead of our own and pass them better
exit codes.

Submitted by:	wollman (and changed a lot by me)
1995-10-09 07:21:00 +00:00
Bruce Evans 669c4b246c Don't claim that `ranlib -t' is useful.
Our ld is derived from gnu ld which doesn't check the timestamp on
__.SYMDEF.  gnu ld is designed to work with gnu ar which doesn't
even have a ranlib option (gnu ar updates __.SYMDEF automatically
if __.SYMDEF already exists, so gnu ld expects __.SYMDEF to be up
to date if it exists).
1995-10-09 05:19:27 +00:00
Andrey A. Chernov fbad6604dd Fix one column wrong offset in previous change days->day 1995-10-08 23:16:45 +00:00
Andrey A. Chernov ec3e116140 Change error diagnostic to be less confusing:
no calendar file -> no calendar file in current directory
1995-10-08 14:18:15 +00:00
Andrey A. Chernov 2b91a983a5 Remove hack inserted by me long time ago (cd $HOME for user-called case),
no other system do it and it can cause problem with multi-calendars
for single user.
1995-10-08 14:15:20 +00:00
John Fieber 5a288d129a This is now perl5 friendly.
Make server side include hooks for headers and footers controlled
by a command line switch and document the feature.
1995-10-07 22:28:34 +00:00
Poul-Henning Kamp 3dff9b4169 Another place where malloc is expected to return zero'ed storage.
(Found with phkmalloc/2 (TNG!) send me email if you want a copy.)
1995-10-07 17:53:30 +00:00
Poul-Henning Kamp 4699383a71 Symorder relies on malloc to return zero'ed data. Found with phkmalloc/2. 1995-10-07 08:13:24 +00:00
Poul-Henning Kamp 662d0b8c51 Die if we get errors from the tty. 1995-10-06 15:32:36 +00:00
Peter Wemm 4159dde275 Support for using overlapping kzip kernels that are overwritten during
uncompression by the "proper" kernel.  These changes also add a -v option
so you can see how much room you are using, and check to make sure you're
not going past the 4MB boundary.

This depends on the corresponding changes to sys/i386/boot/kzipboot.

Submitted by:	Gary Jones(?) <gj@freefall>, and my code merged in.
1995-10-06 02:42:15 +00:00
Mike Pritchard 2eb05f4227 Fix a bug in a recent commit that broke more so that it
would no longer properly detect when "vi" was being called,
and thus would not call vi with the "+line#" argument.
1995-10-05 22:26:43 +00:00
Justin T. Gibbs f4390542d7 Kerberos can now deal with multi-homed clients.
Kerberos obtains a network address for the local host from the routing
tables and uses it consistently for all Kerberos transactions.  This ensures
that packets only leave the *authenticated* interface.  Clients who open
and use their own sockets for encrypted or authenticated correspondance
to kerberos services should bind their sockets to the same address as that
used by kerberos.  krb_get_local_addr() and krb_bind_local_addr() allow
clients to obtain the local address or bind a socket to the local address
used by Kerberos respectively.

Reviewed by: Mark Murray <markm>, Garrett Wollman <wollman>
Obtained from: concept by Dieter Dworkin Muller <dworkin@village.org>
1995-10-05 21:30:21 +00:00
Joerg Wunsch 587582a6d5 Describe the correct default situation for the various permission
options.

Submitted by:	sgk@troutmask.apl.washington.edu (Steven G. Kargl)
1995-10-05 06:18:48 +00:00
Peter Wemm 7b47e45310 Make more pass +linenumber to vi (and emacs), even if $EDITOR is used.
Closes PR#441, but with a more generic method.
1995-10-04 09:33:39 +00:00
Bruce Evans 9d7f79dc98 Enable sasc. 1995-10-03 12:29:28 +00:00
Andrey A. Chernov 0bf30bc7b2 Build secure telnet if available and allowed 1995-09-29 19:50:40 +00:00
Bruce Evans 89e45c9b7f Don't use gets().
sys_curses/system.c:
Don't use gets() better.  Neither gets() nor fgets() is appropriate for
discarding a line of input.
1995-09-29 18:44:53 +00:00
Bruce Evans 6ef8b8ca0c Build tools subdir first to reduce bogons caused by inadequate dependency
handling for the tools binaries.  E.g., after libc.a is changed, it
previously took two `make' passes and one `make depend' pass following
one of the `make' passes to bring everything up to date.  Now one `make'
pass followed by one `make depend' pass is sufficient.

Dependency handling seems to be difficult to handle cleanly when
interdependent things are built in different directories.
1995-09-29 18:32:39 +00:00
Jean-Marc Zucconi c28f850118 Makefile: use CFLAGS+= instead of CFLAGS=. Don't use the f2c's malloc.
main.c: reinstitute the -o option to rename C output file.
1995-09-28 20:43:33 +00:00
Jean-Marc Zucconi 5d60853225 Update to the 1995/09/20 version. Previous version was 1993/12/17
The diffs are large mainly because of prototyping changes.
1995-09-28 20:36:16 +00:00
Bruce Evans 691cda9ce1 Fix SRCS so that `make depend' works. There were some .l's and some .y's.
The filenames in SRCS must have one of the extensions .s, .S, .c, or .cc
if they are to be handled by bsd.dep.mk.  Lex and yacc files must be
converted to C files and kept around for everything to work.  This is
handled fairly automatically if the names of the generated C files are
put in SRCS.  Unfortunately these names must be put in CLEANFILES too.

pcvt Makefiles:
Fix DPADD.  It was missing.

Fix CLEANFILES.  Some temporary files were missing.

Fix CFLAGS.  There were some `-I dir' options.

There must be no whitespace separating -I and -D options from the
corresponding args if these options are to be handled by bsd.dep.mk.
1995-09-28 18:23:44 +00:00
Andrey A. Chernov feb1b301ec Rename PATH_LOCK to PATH_UUCPLOCK 1995-09-23 15:17:32 +00:00
David Greenman 1b72e71cc2 Fixed netstat to not bogusly mangle the argv[] command args by rewriting
the way it stores and handles "interface". The previous behavior resulted
in strange output from 'w' and 'ps' when an interface specification was
given to netstat.
1995-09-23 15:04:28 +00:00
John Fieber 3b2d7cc9ec Lay some hooks for server side includes in HTML output. Specifically,
hooks for custom headers and footers.
1995-09-22 18:24:32 +00:00
Poul-Henning Kamp 0ad2ff70ee Stop using gnumalloc. 1995-09-22 14:14:32 +00:00
Dima Ruban 89cc2fabf2 Print "1day" instead of "1days" 1995-09-22 00:50:37 +00:00
Joerg Wunsch 449c6a18c2 Implement a rather gross hack to identify i386 a.out core files.
Takes advantage of some bytes in our current tss structure that
reliably have particular values (due to our current architecture or
CPU requirements).
1995-09-21 20:10:52 +00:00
Andrey A. Chernov 25883984a4 Use new _PATH_LOCK
Fix bug: pid was not assigned
1995-09-20 13:21:21 +00:00
Bruce Evans e475c1dd26 Back out the change in rev.1.4 and fix the formatting of the change
in rev.1.3.  1.4 just broke 1.3 for the -x case.

This fixes PR 721 and merges archive.c with 4.4Lite2.
1995-09-18 18:37:09 +00:00
Joerg Wunsch ae91233946 Add X11 XPM and BDF description strings. Alas, bitmaps do not have
anything usable as "magic string".
1995-09-17 19:22:00 +00:00
Justin T. Gibbs 5601df6e0c Point passwd to the new locations of kpasswd.c and kadm.h. 1995-09-14 21:02:16 +00:00
Nate Williams e9f1a293f1 Simpler fix to the find bug reported by Terry Lambert <terry@lambert.org>
[ Find to a file vs. to stdout ] produces different output because find
does not flush stdout when doing a -print.

Submitted by:	Jeffrey Hsu <hsu@freefall.freebsd.org>
1995-09-12 23:15:33 +00:00
Mark Murray 776955d918 Updating /usr/include/kerberosIV/des.h so eBones will build breaks
rcp and rlogin.
(patch supplied)

Submitted by:  John Capo <jc@irbs.com>
1995-09-10 14:59:51 +00:00
Jean-Marc Zucconi b1926d59c9 message catalog for fr_FR.ISO_8859-1 1995-09-09 15:06:08 +00:00
Jean-Marc Zucconi 37eda82b8e Add fr_FR.ISO_8859-1 to LANGS 1995-09-09 15:05:14 +00:00
Jordan K. Hubbard b7935a74ba Change the errx(0,...) to errx(1,...)
Submitted by:	Mike Murphy <mrm@alpharel.com>
1995-09-08 20:33:21 +00:00
Julian Elischer c3b7c5b702 add RCS Id strings so we know what we have 1995-09-08 18:42:46 +00:00
Julian Elischer 082e703782 Submitted by: Luigi Rizzo (luigi@iet.unipi.it)
Obtained from:  Gunther Schadow  and Luigi Rizzo
control program for Trust AmiScan BW (GI1904 chipset)

ASC - A device driver for a handy scanner

This is a device driver for GI1904-based hand scanners, e.g. the Trust
Amiscan Grey and possibly others. The driver is based on the "gsc"
driver and, partly, on a  Linux driver.

The driver has a working select().

-Luigi Rizzo (luigi@iet.unipi.it)
1995-09-08 03:08:01 +00:00
Joerg Wunsch 76ba1af23f Bring Barry Morris' changes from FreeBSD 1.1.5.1 back: pass arguments
to the target login's shell.  This allows for "su -c".

Do it right this time and also explain this behaviour in the man
page. :)

Obtained from:	bsm's work in FreeBSD 1.1.5.1
1995-09-06 12:38:53 +00:00
Peter Wemm 6926792029 Increase the tty column width from 2 to 3 characters.
This gives us more room to breath with tty names, especially with drivers
that support large numbers of ports..  eg: specialix and digiboard.

This does not actually change the current tty names, it just allows room
for reporting more characters if the drivers use them.
1995-09-04 01:22:54 +00:00
Mark Murray 492412e2d0 Add pw_yp.c to SRCS. This is code that was moved to chpass, but passwd still
needs it to build.
1995-09-03 11:40:37 +00:00
Andreas Schulz 98c88647d9 Correct a typo :-). 1995-09-02 19:25:40 +00:00
Bill Paul b62f3dc428 Bug fix: use the use_yp() function in the chpass(1) code to determine
correctly whether a user is local or NIS (or both, or neither). If you
have a user that exists locally but not in NIS, passwd(1) could get
confused and try to submit the password change to NIS. (Fortunately,
yppasswdd is smart enough to spot the error and reject the change.)

Bug reported by: Charles Owens <owensc@enc.edu>
1995-09-02 04:02:28 +00:00
Bill Paul 9219423651 Make use_yp() smarter about figuring out whether a user is local or
NIS (or both, or neither). Also add support for -l and -y flags to
force behavior to local or NIS. use_yp() also goes out of its way to
retrieve the correct password database information (local or NIS)
depending on what the situation since getpwent() & co. can't
necessarily be trusted in some cases.

Also document new flags in man page.
1995-09-02 03:56:21 +00:00
John Fieber d8c5d59031 Command line arguments are now gathered by NewGetOpt. Command line
syntax is slightly changed:  -format is now -f format.

New option: -i name
This is a switch to control marked sections in SGML documents.  Useful
for multi-lingual documents.
1995-08-31 00:14:02 +00:00
Andrey A. Chernov 0f895305a1 Fix error: while getting file name, backspace not works, but produce
^G instead. Proper interaction with ncurses require turn keypad
off/on there.
1995-08-30 17:42:28 +00:00
Andrey A. Chernov c6eb6d4f8f Fix 8bit chars output, not highlight all of them 1995-08-30 17:11:54 +00:00
Jordan K. Hubbard 892e037673 While posting something to -current about this, I got an idea for making
it a more ideal I18N candidate.  Here it is.
1995-08-30 13:25:55 +00:00
Jordan K. Hubbard 323b0c7f1f Add ee. 1995-08-30 09:52:07 +00:00
Jordan K. Hubbard 6c29f08e5a This commit was generated by cvs2svn to compensate for changes in r10452,
which included commits to RCS files with non-trunk default branches.
1995-08-30 07:28:06 +00:00
Jordan K. Hubbard 6f80b46075 This is `ee' - the Easy Editor. I'm bringing it in to replace vi on
the installation floppy (and in any references in new user docs for
editing files) since tossing a novice into vi with no help or clue as
to what the key bindings are is both cruel and in violation of the
Hague Convention.  It's also much SMALLER than vi and even supports emacs
key bindings for those so inclined.
Submitted by: "Hugh F. Mahon" <hugh@nsmdserv.cnd.hp.com>
1995-08-30 07:28:06 +00:00
John Fieber 918bad6d52 New Improved navigation controls. 1995-08-29 01:02:12 +00:00
Mike Pritchard ae532ecb79 Check for expired passwords before allowing access to the system. 1995-08-28 21:30:59 +00:00
Jordan K. Hubbard 0031ae7a17 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
Jordan K. Hubbard 58cba44370 Remove -DKLUDGELINEMODE again; it's breaking things and Paul T. says
it's a bug anyway.
1995-08-28 17:47:39 +00:00
David Greenman b5203ad098 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
David Greenman 7e877393a8 Backed out change in rev 1.2. 1995-08-27 02:02:19 +00:00
Jordan K. Hubbard 6193bf6046 Accept escaped quotes in msg catalogs. 1995-08-26 18:37:49 +00:00
John Fieber 771a16a90f Make the -ascii option generate filename.ascii rather than filename.txt 1995-08-25 23:26:49 +00:00
Paul Traina 250ea66842 Fix up warning about qsort parameters 1995-08-23 04:51:05 +00:00
Andrey A. Chernov ddcf802236 Upgrade to 2.9 1995-08-21 12:34:18 +00:00
Peter Wemm 6bc227b405 Update the DNS tools from 4.9.3-b9 -> 4.9.3-b24 1995-08-20 22:32:57 +00:00
Peter Wemm 5307efb797 Update 4.9.3.beta9p1 -> 4.9.3-beta24 1995-08-20 22:22:38 +00:00
Bruce Evans c555738304 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
Jordan K. Hubbard ce19262d8c 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 Wunsch b5cfa4b2c4 '#' 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 Wunsch 8e502f1158 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
Bill Paul 367157222f 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
Bill Paul a3ce11a24d 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
Mike Pritchard c4b4d74391 Restore the reference to quot(8). 1995-08-13 09:39:23 +00:00
Andreas Schulz 1f4b92cffb 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
Andrey A. Chernov 3bef267d25 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
Andrey A. Chernov d40cee33a8 Allow national printable chars in .plan 1995-08-08 00:45:21 +00:00
Andrey A. Chernov 7a88bad16a Replace asctime/ctime by strftime %c to use national representation 1995-08-08 00:38:33 +00:00
Andrey A. Chernov 8327624e76 Change ctime to strftime %c to use national date/time representation. 1995-08-08 00:15:16 +00:00
Andrey A. Chernov eaf7e02e63 Replace ctime by strftime %c to use national date representation now 1995-08-07 23:39:58 +00:00
Garrett Wollman 656dcd4316 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 Wemm 8e53a8e6fc 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
Andrey A. Chernov 2ccab10de2 Remove timedef 1995-08-06 11:19:27 +00:00
Mark Murray 3b9d90c08c Only build telnet if secure telnet is not going to be built.
Reviewed by:	rgrimes
1995-08-06 11:05:31 +00:00
Jordan K. Hubbard ab6e36a2b6 Eliminate a few more lurking obj bogons. 1995-08-06 02:52:40 +00:00
Andrey A. Chernov bc34d0a3ee Fix pm name after some time playing with 1995-08-05 23:53:33 +00:00
Andrey A. Chernov 9624513ae3 timedef added 1995-08-05 23:28:21 +00:00
Andrey A. Chernov 4a171a9d58 Very simple LC_TIME compiler, you fill free to commit more complicated one 1995-08-05 23:23:41 +00:00
Jordan K. Hubbard 0d189a30f2 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
Andrey A. Chernov 8992794b01 Remove _set_ospeed, it is done in tgetent 1995-08-05 22:04:23 +00:00
Andrey A. Chernov cc3c7e3860 Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
Andrey A. Chernov bbaccbeb9a Remove _set_ospeed, trick done in tgetent now 1995-08-05 21:25:28 +00:00
Paul Traina 4c450ad7a7 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 Wunsch 84be91cbaf 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
Andrey A. Chernov 95729168e4 Add missing ospeed initialization. 1995-08-04 08:05:18 +00:00
Andrey A. Chernov ce2219545f Replace ospeed switch with _set_ospeed 1995-08-04 07:04:40 +00:00
Andrey A. Chernov 044e7914e0 Replace wrong ospeed setting (overflows) with new _set_ospeed
function.
1995-08-04 06:58:45 +00:00
Andrey A. Chernov 3c0ba277d4 Allow it works with non-fixed termios speeds.
Replace ospeed switch with new _set_ospeed
1995-08-04 06:54:18 +00:00
Andrey A. Chernov eba2820db2 Change outc to match prototype 1995-08-04 06:45:55 +00:00
Andrey A. Chernov 252f47a817 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
Andrey A. Chernov a8729090ed 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
Poul-Henning Kamp eebb154304 Sanitize the PGP strings a bit. 1995-08-03 07:11:45 +00:00
Andrey A. Chernov b418143d61 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
Satoshi Asami b60de1afb0 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
Andreas Schulz eb26b35651 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
Andrey A. Chernov 263ac6e4b1 Reduce passed speed to 38400, like telnet does too.
Remote rlogind may not understand speeds > 38400.
1995-08-01 02:23:21 +00:00
Satoshi Asami 75f2898f9a 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
David Greenman 3aa80b1d81 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
David Greenman 89d7f49a31 Add "connections dropped by persist timeout" statistic. 1995-07-29 18:49:16 +00:00
Bruce Evans 9c0dc173cc 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
Bruce Evans 6eee579315 Change `install' to `${INSTALL}' as usual.
Remove the extra slash in ${DESTDIR}/${BINDIR}.
1995-07-25 00:22:50 +00:00
Bruce Evans 3fbfb0f281 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
Mike Pritchard 53d63fbd0a 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
Rodney W. Grimes 65d3266d56 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 Wunsch 3bd85a2333 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 Wunsch fdb7c7dc11 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 Wunsch f816912386 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
Garrett Wollman bbdb094b50 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 Wemm 6367cd09b8 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 Wemm 7908b94389 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 Wemm 605abcde5e 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 Wemm 0812a2b446 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
Mike Pritchard 55cc991796 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 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