Commit Graph

886 Commits

Author SHA1 Message Date
Bruce Evans
fdee4617c6 Fixed a type mismatch in crufty misconfigured compatibilty code. 1996-03-19 15:11:13 +00:00
Joerg Wunsch
229cd11bba Minor correction regarding the last line of an uuencoded file.
Submitted by:	Giles Lean <giles@topaz.nemeton.com.au>
1996-03-17 09:49:51 +00:00
Joerg Wunsch
6109ca90ae Fix a couple of sign-extension bugs.
Submitted by:	serg@bcs1.bcs.zaporizhzhe.ua (Sergey Shkonda)
1996-03-17 09:00:48 +00:00
Andras Olah
03801815df Allow the user to disable the use of T/TCP by setting the -T option.
This option becomes useless when all TCP stacks are fixed out there.
1996-03-15 16:41:49 +00:00
Wolfram Schneider
506745c8a5 remove /usr/ucb from path
cleanup Makefile
1996-03-12 21:37:05 +00:00
Andrey A. Chernov
7573cb47cf Increment network byte order properly
Reviewed by: wollman
1996-03-12 10:23:30 +00:00
Mark Murray
1a98a0fb5b Make su a little less fascist about using Kerberos if it is not
configured or available.

Also fix a _nasty_ bug that would let one in if su -K was used.
Any old password would work :-( :-(.
1996-03-11 22:14:52 +00:00
David Greenman
d8d891521e Move #include of queue.h before #include of socketvar.h in preparation for
struct socket changes.
1996-03-11 13:01:12 +00:00
David Greenman
48750b4c77 Include queue.h in preparation of struct socket changes. 1996-03-11 13:00:12 +00:00
David Greenman
0bb10c6613 Include queue.h in preparation for upcoming struct socket changes. 1996-03-11 12:56:07 +00:00
Mike Pritchard
83d5ca475c Fix some grammer problems. 1996-03-11 04:50:13 +00:00
Mike Pritchard
6ce9e6704d Add the -x option to the usage string.
Submitted by:	Philippe Charnier <charnier@lirmm.fr>
1996-03-11 03:36:10 +00:00
Mike Pritchard
ade9638b8a Fix a couple of typos.
Submitted by:	Philippe Charnier <charnier@limrr.fr>
1996-03-11 03:31:51 +00:00
Mike Pritchard
4aabdf7d3b Change an incorrect reference to the "-n" flag to "-#".
Submitted by:	Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Obtained from: NetBSD-bugs mailing list
1996-03-11 03:09:00 +00:00
Jeffrey Hsu
782ff9b2f0 From Lite2: rename fs to vfs. 1996-03-11 03:06:45 +00:00
Andrey A. Chernov
a0a4788922 Print 8bit chars from the net if current locale allows them 1996-03-10 23:33:48 +00:00
Joerg Wunsch
285926046a Make talk automagically find out the interface IP address where the
remote peer will be connected through.  This avoids the ``Checking for
invitation on caller's machine'' problem for multi-homed hosts.

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

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

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

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

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

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

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

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

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

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

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

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

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

- Update man page.

In chpass(1):

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

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

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

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

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

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

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

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

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

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

        if shell is standard shell, allow changing

   I changed it to

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

   Makes sense to me.

- Update man page.
1996-02-23 16:08:59 +00:00
Joerg Wunsch
9408e822a5 . cast the error and status registers properly to (unsigned short),
to avoid misinterpreting the 0x8000 bit as a negative sign,

. use the <machine/wtio.h> register def's to print them.
1996-02-22 00:33:35 +00:00
Wolfram Schneider
921e4281bd Submitted by: bruce
replace shell loop with make(1) builtin loop
1996-02-18 19:29:45 +00:00
Wolfram Schneider
30c00b0d9b more verbose output during install foreign calendar files 1996-02-18 01:42:44 +00:00
Garrett Wollman
37b197b9ec For some reason, the changes to make route.c compile didn't make it over.
Fixed.

Pointed-out-by: joerg
1996-02-16 15:42:14 +00:00
Mike Pritchard
c8ead7a6cf Fix typo in xref in NOTES section. 1996-02-14 22:26:04 +00:00
Garrett Wollman
cbc17e711e XNS sort-of-support is no more. 1996-02-13 17:30:37 +00:00
Joerg Wunsch
11ea728320 Include both, the regular and the `secure' telnet, when building
a release.
1996-02-13 09:24:43 +00:00
Mike Pritchard
bcff8e2ae4 Another round of man page cleanups.
Down to only about 100 items left to cleanup! :-)
1996-02-12 04:57:03 +00:00
Mike Pritchard
b0ac1967ba Add a little info to this man page at the start so it doesn't
appear that ALL the passwd command does is change a users Kerberos
password, since that is incorrect.

Actually, this man page needs a good overhaul to better reflect systems
that don't have Kerberos installed.
1996-02-12 02:32:40 +00:00
Mike Pritchard
4bd9ba3c2f Fixed some minor formatting problems to silence manck some more.
Corrected some bogus cross references to man pages that we don't/won't
have and either deleted them, or found a more appropriate man page
that we do have.  Various other minor changes to silence manck.

Manck is currently down to about 200 lines of errors, down from
the 500 - 600+ when I started all this.
1996-02-12 01:20:38 +00:00
Mike Pritchard
5a489ac2b8 Minor cleanup of the rpc man pages to silence manck. 1996-02-12 00:02:42 +00:00
Mike Pritchard
78b0b234eb Correct a bunch of man page cross references and generally
try and silence "manck".

ncurses, rpc, and some of the gnu stuff are still a big mess, however.
1996-02-11 22:38:05 +00:00
Mike Pritchard
a0c8e7aa27 Added a small man page for locate.updatedb(8). 1996-02-11 18:54:39 +00:00
Mike Pritchard
5682a19c6e Added some info describing the script that updates the database,
and the fact that it is usually run by /etc/weekly.
Closes docs/127.
1996-02-11 18:34:22 +00:00
Mark Murray
bbff7ca556 #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
Wolfram Schneider
827bf2db99 always warn if no processes matched 1996-02-11 00:12:15 +00:00
Wolfram Schneider
7dd8098387 Submitted by: Slaven Rezic (Tomic) <eserte@cs.tu-berlin.de>
croatian calendar
1996-02-09 14:35:02 +00:00
Paul Traina
2e2b09d90d Kludge-fix for a specific instance of bin/517.
The real fix requires changes to getpwent(3) and friends and getgrent(3)
and friends.

Submitted by:	Tim Wilkinson
1996-02-08 06:17:50 +00:00