Commit Graph

629 Commits

Author SHA1 Message Date
Jordan K. Hubbard
4b96fa37b0 Use a more nicely formatted message when we run out of space. 1995-04-18 13:04:34 +00:00
Jordan K. Hubbard
9a6f00fd39 Extensive updates to this package.
Moved Install.notes -> README, as ratified at the core meeting of
April 13th.

Submitted by:   Gene Stark <gene@starkhome.cs.sunysb.edu>
1995-04-18 01:57:50 +00:00
Rodney W. Grimes
0a8cb0c4a5 Missing ${DESTDIR} added 4 places, pcvt's Makefiles are a crock! 1995-04-17 19:28:45 +00:00
Rodney W. Grimes
0682236f7e Add 4 missing ${DESTDIR}'s, this is another Makefile that needs rewritten. 1995-04-17 19:24:50 +00:00
Atsushi Murai
4fb5c16406 Loglevel is a bitmask everywhere except in lqr.c.
Reviewed by:	Atsushi Murai <amurai@spec.co.jp>
Submitted by:	John Capo <jc@irbs.com>
1995-04-17 04:21:35 +00:00
Bruce Evans
9e6dc28ab3 Check for i/o errors in fclose() so that a full disk doesn't almost
guarantee truncation of the file being edited.
1995-04-16 22:40:49 +00:00
Atsushi Murai
38c50f39a0 Fixing follows and John's fruent explnation than my English....
The first problem I found was that descriptor 0 was being closed.
This happens because the modem variable is set to 0 to indicate
that it is not valid but there are not enough tests for the modem
variable being 0.  You can see where I have done this in the patch.
Code in OpenModem() dups the modem descriptor if it is < 3.  Once
this happened the modem was always open and an incomming call would
have getty and ppp reading the modem.

Descriptor 1 is closed when the quit command was executed from a
telnet connection.  The next modem open returns descriptor 1
and this gets duped leaving the modem always open again.

The modem was not being closed when the connection dropped or was
closed from the other end.  The UUCP lock was also not removed if
the modem could not be opened.

Reviewed by:	Atsushi Murai <amurai@spec.co.jp>
Submitted by:	John Capo <jc@irbs.com>
1995-04-16 13:38:39 +00:00
Atsushi Murai
10b748971b Fix for handling a HDLC's escape characters as properly.
Reviewed by:	Atsushi Murai <amurai@spec.co.jp>
Submitted by:	NIIMI Satoshi <sa2c@st.rim.or.jp>
1995-04-16 12:06:39 +00:00
Bruce Evans
5c1bcbae24 Do what the previous log message claimed to do and don't enable DES if
the user doesn't have the secure sources.
1995-04-16 01:40:24 +00:00
Bill Paul
a00f731551 In environments with multiple NIS servers (a master and several slaves)
one ypbind broadcast can yield several responses. This can lead to
some confusion: the syslog message from ypbind will indicate a rebinding
to the first server that responds, but we may subsequently change our
binding to another server when the other responses arrive. This results
in ypbind reporting 'server OK' to one address and ypwhich reporting a
binding to another.

The behavior of the rpc_received() function has been changed to prevent
this: subsequent responses received after a binding has already been
established are ignored. Rebinding gratuitously each time we get a
new response is silly anyway.

Also backed out the non-fix I made in my last ypbind commit. (Pass
me the extra large conical hat, please.)

(At some point I'm going to seriously re-work ypbind and the _yp_dobind()
library function to bring them in line with SunOS's documented behavior:
binding requests are supposed to be 'client-driven.' The _yp_dobind()
function should be responsible for retrying connections in response to
calls from client programs rather than having ypbind broadcasting
continously until a server responds. The current setup works okay in
normal operation, but we broadcast far too often than we should.)
1995-04-15 23:35:46 +00:00
Bruce Evans
e007f8483b - Don't write the label if the (undocumented) nflag is set.
- Don't write the label directly - use DIOCWDINFO.
- Avoid overflow in calculation of lseek() offsets.
- Fix format args in strings some more.  %ld and %lu were often reversed and
  #ifdefed out strings weren't fixed.
- Don't hard code the raw partition letter or DKBAD*.
- Write the qsort() comparision function in `C'.
- Fix all remaining warnings from `cc -Wall -Walmost-really-all'.
1995-04-15 21:59:26 +00:00
Andreas Schulz
892dbf3c38 Add mixer to the clean/cleandir targets to get it also cleaned up. 1995-04-15 21:45:49 +00:00
Andrey A. Chernov
c5dda01527 Fix MAILTO hole by passing -t to sendmail
Submitted by: Mike Pritchard <pritc003@maroon.tc.umn.edu>
1995-04-14 21:54:18 +00:00
Andrey A. Chernov
7ed12e2a4a Really fix MAILTO hole by parsing spaces.
Remove local bitstring copy
1995-04-13 20:58:13 +00:00
Joerg Wunsch
936209a647 Include pcvt into the list of subdirs, so its utilities will be
included into fututre distributions.
1995-04-13 20:27:11 +00:00
Andrey A. Chernov
f8cb57f574 Don't set -or0s (timeout 0) for possible network MAILTO 1995-04-12 19:28:30 +00:00
Andrey A. Chernov
4c256f710e Fix home dir cheating 1995-04-12 19:04:26 +00:00
Andrey A. Chernov
1cb37d6325 Close MAILTO security hole 1995-04-12 18:57:37 +00:00
Garrett Wollman
fe9140c204 there is a endian problem when setting up tunnel and phyint boundaries
in the mrouted. inet_parse returns network byte ordered address, but there
are a couple comaprisons that need to be done on the addresses and the
comparisons are done in host order. I left the comparisions for 0xffffffff
alone, because this value is the same in network and host orders.

Submitted by:	Mark Tinguely <tinguely@plains.NoDak.edu>
1995-04-10 18:42:10 +00:00
Jordan K. Hubbard
1b164cce2b Neither of these tools really told you what you needed to know neatly
and succinctly in verbose mode.  I hope people find this more to their
liking.
1995-04-10 08:01:52 +00:00
David Greenman
9dcb6988b3 Removed bogus #include of netinet/in_pcb.h 1995-04-10 00:41:25 +00:00
Bill Paul
2d91aab798 First crack at a man page for ypbind. 1995-04-09 21:59:06 +00:00
Jordan K. Hubbard
6c5325bf0e Add true support for dependency lists.
1. pkg_create now has a -P argument for specifying dependencies on the
   command line.
2. pkg_add will honor dependencies and chain-load them automatically if
   it finds the required package(s) in the same directory as the package
   that is being loaded.  For best results, install packages from a directory
   containing all the packages you'll possibly need
   (like /usr/ports/packages/all).

2 remaining flaws:

1. pkg_add looks in one place (where you were when you loaded the primary
   pkg) for depended packages.  If you can come up with a search path scheme
   that's not a total hack - be my guest!

2. Recursive dependency expansion can result in the name of a dep being
   listed more than once.  This doesn't bother pkg_add since it checks
   for package existance with pkg_info and will skip already-loaded packages.
   I don't know how/if pkg_delete handles this yet, however.  I need to look
   into it.
1995-04-09 15:05:01 +00:00
Joerg Wunsch
a3e026396c The rmt protocol didn't allow to pass a file creation mode (permission
bits) along, and rmt did the wrong thing in calling open(2) with random
garbage as third parameter.  Make it create new files with 0666
(modified by the umask of the remote shell anyway).

This removed the last show-stopper from tar not working with remote
archives.
1995-04-09 09:20:47 +00:00
Poul-Henning Kamp
18987c6ebd Clean up, and make it work with Bruces wd.c changes.
Bad144 is on the way back.
1995-04-09 06:06:01 +00:00
Andrey A. Chernov
6b234a88dc Non-blocking lock
Remove old salt cause possible endless loop
Submitted by: <wosch@cs.tu-berlin.de>
1995-04-09 03:34:10 +00:00
Joerg Wunsch
785b47579d Upgrade pcvt to 3.20 b24. 1995-04-08 16:04:22 +00:00
Andrey A. Chernov
70e6b1cd61 Manpage not installed 1995-04-06 14:41:50 +00:00
Jordan K. Hubbard
4ba103156d Latest version of this package from Wolfram. Is now /etc/sysconfig aware,
handles default settings and has a prototype translation file for people
wishing to add extra languages (please!).
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-04-05 08:09:25 +00:00
Rodney W. Grimes
756097f16a Bring down the old version of Makefile from the Attic and replace with this
bmake version of Makefile to build and install dcfd.

Submitted by:	Vincenzo Capuano <VCAPUANO@vmprofs.esoc.esa.de>
1995-04-04 17:48:02 +00:00
Bill Paul
9f3db41ff5 Fix long standing bogosity in ypbind: if /var/yp/binding doesn't exist,
ypbind is supposed to create it but it doesn't. This is because when
it checks the return value for the attempted open() of
/var/yp/binding/DOMAIN.VERSION, it tests only for a value of -1. This
is bogus because open() doesn't return -1 in this case. Now it checks
for < 0 instead.

This should make life easier for many NIS-newbies who would otherwise
be left scratching their heads wondering why the NIS client stuff won't
work despite their best efforts. ("I set the domain name on my machine,
and /var/yp exists, but when I start ypbind and try a 'ypcat passwd,'
it says it can't bind to a server for this domain! Please help!")

*long, heavy sigh*
1995-04-02 03:10:55 +00:00
Bill Paul
84e41ecfbe Get rid of ether_addr.c: it's been moved to libc. Also add proper
declaration for ether_ntohost(). (Does anyone know what header file
is supposed to contain the declarations for the ether_addr functions?
I can't them in the SunOS includes anywhere.)
1995-04-02 01:35:54 +00:00
Joerg Wunsch
175fa6182a Update pcvt to 3.20b23
Submitted by:	Hellmuth Michaelis <hm@altona.hamburg.com>
1995-04-01 17:16:40 +00:00
Garrett Wollman
478140b95f Forgot to add these two.
Submitted by:	Mark Tinguely <tinguely@plains.NoDak.edu>
1995-03-31 21:18:13 +00:00
Garrett Wollman
94036a8cf0 Fix paths of dump files and PID file.
Added man pages for mrinfo and map-mbone.
Rewrote all man pages to use mdoc(7).

Submitted by:	Mark Tinguely <tinguely@plains.NoDak.edu>
1995-03-31 21:16:59 +00:00
Jordan K. Hubbard
ee0afc78a8 Patches to make this work with FreeBSD with the DCF77 Boeder Receiver.
This is only useful to European users (esp. Germans) as DCF77 transmits
from Frankfurt.
Submitted by:	Vincenzo Capuano <VCAPUANO@VMPROFS.ESOC.ESA.DE>
1995-03-31 07:01:11 +00:00
Jordan K. Hubbard
8d0f93af56 Missing const clashes with prototype definition in ntp_stdlib.h; fixed. 1995-03-31 02:30:15 +00:00
Poul-Henning Kamp
7dd147b45b The latest round of bugfixes here... 1995-03-29 06:13:08 +00:00
Bill Paul
8b5a6d67db Fixed stupid bug in mountd: it would seem that the kernel doesn't allow
you to push the same host into its NFS export lists twice, but mountd
tries to do it anyway. This means that putting:

/some_file_system -ro host1 host1

in your /etc/exports file causes an error. This is bogus: mountd should be
smart enough to ignore the second instance of host1. This can be a problem
in some configurations that use netgroups. For example, each host in my
netgroups database is has two entries:

startide (startide,-,) (startide.ctr.columbia.edu,-,)

When mountd sees this, it tries to put startide.ctr.columbia.edu into the
export list *twice*. Just listing 'startide' /etc/exports list will also
screw up because mountd will try to resolve the netgroup 'startide' instead
of the hostname 'startide.'

My solution is watch for duplicate entries in get_host() and mark them
as grouptype GT_IGNORE, which do_mount() will now cheefully throw away.
This is a bit of a kludge, but it was the least obtrusive fix I could
come up with.

Also silenced a compiler warning: arguments passwd to xdr_long() should
be u_long, not int. :)
1995-03-26 23:36:38 +00:00
Poul-Henning Kamp
37c1d2607b Fixed a bug so that a delta#0 can be applied.
Fixed a typo in the generation of temp filenames.
"Blame" Joerg for the man-pages (and clarify a couple of minor points).
Most appreceiated Joerg!
1995-03-26 20:09:52 +00:00
Bill Paul
bdb44d5fb6 Stop callbootd from dumping core when attempting to directly query a
bootparam server on a host that isn't running bootparamd: if clnt_create()
comes back with a NULL pointer, bail out with an error.
1995-03-26 03:15:39 +00:00
Bill Paul
7112864e5c Make sure we free() the result returned to us by yp_match(). 1995-03-26 02:37:00 +00:00
Joerg Wunsch
de8020d29b Call open(2) and mkdir(2) with 0666/0777 as the `mode' argument (as
opposed to 0644 or 0755).  It's finally still masked by the process'
umask(2), and it does not make sense to restrict it further than that.

This (especially for mkdir(2)) was causing major headaches for the CVS
tree, since a member of group cvs was later not able to get cvs
checkout permission for the mirrored tree failed to write the lock file).
1995-03-25 20:46:51 +00:00
Joerg Wunsch
fee6e7cc49 Added a man page for the ctm(1) command, as well as a format description
for the CTM deltas.

Largely based on Poul-Henning's README, and the source code.
1995-03-25 18:14:26 +00:00
Poul-Henning Kamp
f551164802 Make sure exit() is sensible; 1995-03-24 21:36:32 +00:00
Poul-Henning Kamp
15a9992ca2 Modes on dirs were decimal by mistake.
Submitted by:	joerg
1995-03-24 21:33:20 +00:00
Jordan K. Hubbard
72a3d44887 Add what looks to be the right fix to this bogus code. 1995-03-24 16:07:09 +00:00
Jordan K. Hubbard
5390e1a7be kbdfont -> vidfont for greater commonality with kbdcontrol/vidcontrol 1995-03-24 04:36:19 +00:00
Jordan K. Hubbard
9774e9cfaf Bring in the kbdmap/kbdfont utilities from Wolfram Schneider.
Renamed them to make them more consistent with kbdcontrol/fdcontrol/etc.
1995-03-24 00:52:28 +00:00
Bill Paul
d038db90e8 Re-enable +::::::::: wildcards that I had previously disallowed.
Note: if you put +::0:0:::::: in /etc/master.passwd as your only NIS
entry, it will cause all NIS uids and gids to be remapped to zero. This
is *intentional*. That's the way it's supposed to work. Enabling NIS with
no remapping at all is done with +:::::::::, not +::0:0::::::. Similarly,
+:::::::::/bin/csh will remap the shells of all NIS users to /bin/csh.
Or, you could do +wpaul:::::::::/bin/csh to remap NIS user wpaul's shell
to /bin/csh but leave everyone else alone.
1995-03-23 22:31:11 +00:00