hjl [Fri, 11 Oct 2002 15:37:10 +0000 (15:37 +0000)]
2002-10-11 H.J. Lu <hjl@lucon.org>
* support/include/exportfs.h (export_errno): New.
* support/nfs/exports.c: Include <errno.h>.
(export_errno): New.
(getexportent): Set export_errno to EINVAL for bad option.
(parseopts): Likewise.
Report the location of the default sync/async option.
* utils/exportfs/exportfs.c (main): Initialize export_errno to
0. Return export_errno.
* Start nfs-common after nfs-kernel-server so that the server is running
when statd restarts. In postinst, remove bad rc.d links from old
packages. From Philippe Troin <phil@fifi.org>. (closes: #160800)
* Make init scripts exit with non-zero status when daemons don't start.
* Add titles to templates where I forgot them. (closes: #158489)
* Add /etc/default/{nfs-common,nfs-kernel-server} so setting random
parameters doesn't require editing init scripts. (closes: #131539)
* Split templates into separate files, and add French templates.
(closes: #134630)
* Use invoke-rc.d to avoid premature daemon starts. (closes: 158574)
* Change priority of nfs-kernel-server to 'optional'.
* support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
svcudp_socket if port is unspecified.
* utils/nfsd/nfsd.c (main): Call getservbyname for port.
* utils/rquotad/rquota_svc.c: Include <nfslib.h>.
(killer): New. Signal handler to unregister.
(main): Use killer. Call svcudp_socket to get the default
socket.
chip [Thu, 3 Jan 2002 00:09:02 +0000 (00:09 +0000)]
2002-01-02 Chip Salzenberg <chip@pobox.com>
* support/export/nfsctl.c (expsetup): Don't export entries that
specify id mappings not supported by the kernel. No extant kernel
supports any significant mapping, only 'identity' (i.e. none).
When other mappings are supported, this code will need changing.
* debian/changelog: Version 1.0-2.
chip [Thu, 27 Dec 2001 02:53:21 +0000 (02:53 +0000)]
2001-12-26 Chip Salzenberg <chip@pobox.com>
* utils/exportfs/exports.man: Emphasize the need for options to
immediately follow client names. Explain that wildcards don't
usually work on addresses, but may work when reverse DNS fails.
* utils/mountd/mountd.man, utils/rquotad/rquotad.man,
utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
* debian/changelog: Version 0.3.3-6.
chip [Mon, 26 Nov 2001 19:57:30 +0000 (19:57 +0000)]
2001-11-26 Chip Salzenberg <chip@pobox.com>
* utils/showmount/showmount.c (main): Don't assume that strings
starting with digits are IP addresses.
* utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
/dev/null before nfssvc(). Use syslog to report nfssvc errors.
* support/misc/tcpwrapper.c, utils/mountd/mountd.man,
utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
man pages: We check host names *and* addresses with tcpwrappers.
chip [Thu, 22 Nov 2001 01:32:54 +0000 (01:32 +0000)]
2001-11-21 Chip Salzenberg <chip@pobox.com>
* support/nfs/clients.c (cfname): Added: current clients file name.
(setnfsclntent): Set it.
({get,end}nfsclntent, syntaxerr): Use it.
* support/nfs/exports.c (efname): Added: current exports file name.
(setnfsexportent): Set it.
(endnfsexportent, parseopts, getexport, syntaxerr): Use it.
chip [Mon, 8 Oct 2001 22:32:50 +0000 (22:32 +0000)]
2001-10-08 Chip Salzenberg <chip@pobox.com>
* utils/Makefile.in: Remove Makefile in target 'distclean'.
* utils/mountd/mountd.man: Update paths to /var/lib.
* debian/*: Version 0.3.3-1, with Debian-specific fixes.
* support/nfs/exports.c (putexportent): \octal quote any spaces
etc in a path name
* support/nfs/xio.c (xgettok): recognise double-quote and
\octal quoting in path names
* utils/exportfs/exports.man: document quoting conventions
for path names
* utils/mountd/auth.c (auth_authenticate_internal): Reverse
change from 2000-08-02: It causes problems if someone exports
to both a hostname and IP addresses. nfs-utils must be
consistant about the canonical name that it chooses.