Commit Graph

681 Commits

Author SHA1 Message Date
jkh
524e2d7e9f Whoops - I committed the test environment Makefile by mistake! This
one should have all the proper relative paths.
1995-04-21 10:23:23 +00:00
jkh
1f6fa4c9ec Bring this up to date with Marc van Kempen's latest version (1.0) now
that the libdialog changes have gone in to support it.
Submitted by:	Marc van Kempen <wmbfmk@urc.tue.nl>
1995-04-21 10:05:46 +00:00
jkh
63dadcab7d Correct a bogusly formatted printf(). 1995-04-21 06:30:41 +00:00
phk
b204c4ca96 Add -f to all gunzip's. 1995-04-21 03:47:23 +00:00
jkh
23fe5be93f Greatly simplify the calling of mtree - the error handling wasn't working
anyway, at least not with FreeBSD's mtree, and the arguments were being
built incorrectly.
1995-04-19 14:54:25 +00:00
jkh
496b8887e4 Add support for the ${PKG_DBDIR} environment variable. /var/db/pkg is the
default, and probably not something you'd ever change, but now it's
possible to do so for local/custom installations.
1995-04-19 14:02:01 +00:00
gpalmer
0ff5903c59 Bugfixes :
- in mount_portal.c: included catching of SIGHUP to get portald to
  re-read the config file.

  - in mount_portal.c: in SIGCHLD handler the return values checked from
  waitpid were wrong. Note. this routine was written correclty according
  to the manual page for 4.4BSD, but waitpid does not exhibit this
  behaviour. It is not returning 0 when WNOHANG is specified. I havent
  checked this properly.

  - in mount_portal.c: initialized the fdset for the select properly.

  - in mount_portal.c: corrected poor casting in the select.

  - in mount_portal.c: changed a break; to exit (0); so that the
  children die after doing the hard work, this stops the select: bad
  file descriptor messages.

  - in pt_file.c: the kernel passes kernel style open flags to the
  portal code which aren't compatible with "normal" O_ flags. I have
  adjusted these in pt_file.c. In general I think the portal fs code
  and portal_cred structure need changing to pass to the portald
  the right style of flags _and_ the permissions.

  - in pt_tcp.c: a few mistakes in typing of the socket structures,
  getservbyname returns the port number as an int but sockaddr wants
  the port number as an u_short.

  - in pt_tcp.c: someone wrote this on a VAX/Sun whatever and forget
  about byte ordering!! I've included a few htons about the place.

  - in all the above I have sprinkled a few more debugging printf's.

Submitted by:	"Duncan McL Barclay" <dmlb@ohm.york.ac.uk
1995-04-19 12:24:08 +00:00
jkh
ca71c94b25 Use a more nicely formatted message when we run out of space. 1995-04-18 13:04:34 +00:00
jkh
f71c01f1f5 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
rgrimes
c21d11ed43 Missing ${DESTDIR} added 4 places, pcvt's Makefiles are a crock! 1995-04-17 19:28:45 +00:00
rgrimes
5234ecc157 Add 4 missing ${DESTDIR}'s, this is another Makefile that needs rewritten. 1995-04-17 19:24:50 +00:00
amurai
ac3526bc13 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
bde
5065e4a366 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
amurai
77fb3e11a9 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
amurai
164bafd51b 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
bde
d711dde910 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
wpaul
77cd0ce3be 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
bde
3f3f7b2671 - 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
ats
8becb4197a Add mixer to the clean/cleandir targets to get it also cleaned up. 1995-04-15 21:45:49 +00:00
ache
d12c09e5c2 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
ache
81860156cc Really fix MAILTO hole by parsing spaces.
Remove local bitstring copy
1995-04-13 20:58:13 +00:00
joerg
0f0922b7b5 Include pcvt into the list of subdirs, so its utilities will be
included into fututre distributions.
1995-04-13 20:27:11 +00:00
ache
e3bdb075c7 Don't set -or0s (timeout 0) for possible network MAILTO 1995-04-12 19:28:30 +00:00
ache
2e4fea754b Fix home dir cheating 1995-04-12 19:04:26 +00:00
ache
64adcd35a4 Close MAILTO security hole 1995-04-12 18:57:37 +00:00
wollman
6a4b8abd5d 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
jkh
3e496240b4 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
dg
ce03d20e81 Removed bogus #include of netinet/in_pcb.h 1995-04-10 00:41:25 +00:00
wpaul
007c073f7a First crack at a man page for ypbind. 1995-04-09 21:59:06 +00:00
jkh
e8ff66af03 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
6c7aaa6b29 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
phk
a133fe1564 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
ache
0933c2174b 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
da4e71efba Upgrade pcvt to 3.20 b24. 1995-04-08 16:04:22 +00:00
ache
2acf8d7c4f Manpage not installed 1995-04-06 14:41:50 +00:00
jkh
35854221f6 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
rgrimes
329838744c 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
wpaul
3c9467d883 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
wpaul
0eb0d8c0e5 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
496532df22 Update pcvt to 3.20b23
Submitted by:	Hellmuth Michaelis <hm@altona.hamburg.com>
1995-04-01 17:16:40 +00:00
wollman
dbd4fdceb7 Forgot to add these two.
Submitted by:	Mark Tinguely <tinguely@plains.NoDak.edu>
1995-03-31 21:18:13 +00:00
wollman
e40a5c23d7 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
jkh
2bffdfd11d 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
jkh
74c679e3d7 Missing const clashes with prototype definition in ntp_stdlib.h; fixed. 1995-03-31 02:30:15 +00:00
phk
1cd72c801f The latest round of bugfixes here... 1995-03-29 06:13:08 +00:00
wpaul
af8a974897 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
phk
24d628f8ae 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
wpaul
91aac05da2 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
wpaul
dbe9cf220e Make sure we free() the result returned to us by yp_match(). 1995-03-26 02:37:00 +00:00
joerg
90b59d01f5 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