summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
Commit message (Collapse)AuthorAgeFilesLines
* Add one line fix to stop my old 'don't barf if you see the samewpaul1996-08-291-2/+3
| | | | | | | hostname/IP twice on same line in /etc/exports' fix from dumping core due to bogus /etc/exports entries. Submitted by: Toshihiro Kanda <candy@fct.kgc.co.jp>
* Use the .Bx macro where appropriate.mpp1996-08-231-2/+3
|
* Correct some man page cross references and file location references.mpp1996-04-071-1/+1
|
* Fix a bunch of spelling errors.mpp1996-01-291-2/+2
|
* Avoid bogus free() of a junk pointer.joerg1995-11-171-2/+2
| | | | | Detected by: phkmalloc Submitted by: grog@lemis.de (Greg Lehey)
* Just when you thought it was safe...wpaul1995-08-071-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - getnetgrent.c: address some NIS compatibility problems. We really need to use the netgroup.byuser and netgroup.byhost maps to speed up innetgr() when using NIS. Also, change the NIS interaction in the following way: If /etc/netgroup does not exist or is empty (or contains only the NIS '+' token), we now use NIS exclusively. This lets us use the 'reverse netgroup' maps and is more or less the behavior of other platforms. If /etc/netgroup exists and contains local netgroup data (but no '+'). we use only lthe local stuff and ignore NIS. If /etc/netgroup exists and contains both local data and the '+', we use the local data nd the netgroup map as a single combined database (which, unfortunately, can be slow when the netgroup database is large). This is what we have been doing up until now. Head off a potential NULL pointer dereference in the old innetgr() matching code. Also fix the way the NIS netgroup map is incorporated into things: adding the '+' is supposed to make it seem as though the netgroup database is 'inserted' wherever the '+' is placed. We didn't quite do it that way before. (The NetBSD people apparently use a real, honest-to-gosh, netgroup.db database that works just like the password database. This is actually a neat idea since netgroups is the sort of thing that can really benefit from having multi-key search capability, particularly since reverse lookups require more than a trivial amount of processing. Should we do something like this too?) - netgroup.5: document all this stuff. - rcmd.c: some sleuthing with some test programs linked with my own version of innetgr() has revealed that SunOS always passes the NIS domain name to innetgr() in the 'domain' argument. We might as well do the same (if YP is defined). - ether_addr.c: also fix the NIS interaction so that placing the '+' token in the /etc/ethers file makes it seem like the NIS ethers data is 'inserted' at that point. (Chances are nobody will notice the effect of this change, which is just te way I like it. :)
* Changes to support version 3 of the NFS protocol.dfr1995-06-273-85/+189
| | | | | | | | | | | | | | | | | | 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>
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-5/+8
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Add a undocumented '-d' flag to set debugging.phk1995-05-211-2/+5
|
* Fixed stupid bug in mountd: it would seem that the kernel doesn't allowwpaul1995-03-261-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. :)
* Document the mountdtab file in the man page.ats1995-02-221-1/+3
|
* Change obnoxious ``Not root dir'' error message into one which actuallywollman1994-12-021-2/+3
| | | | tells you what's wrong.
* Automatically load NFS and a bevy of other filesystems.wollman1994-09-223-7/+40
|
* Added support for MSDOS file systems.dfr1994-09-191-0/+1
|
* Delete obsolete references to librpc.a.wollman1994-08-081-2/+0
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-2/+2
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* This commit was generated by cvs2svn to compensate for changes in r1558,rgrimes1994-05-261-0/+39
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+39
| | | | | Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-265-0/+2456
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud