summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.umntall/mounttab.h
Commit message (Collapse)AuthorAgeFilesLines
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationdfr2009-06-241-3/+3
| | | | and will be removed.
* Fix some bugs and general brain damage in mounttab:iedowse2001-07-221-5/+6
| | | | | | | | | | | | | | | | | | | | - Declare mtabhead as an extern in mounttab.h and define it only in mounttab.c. - Remove shared global `verbose' and instead pass it as a parameter. - Remove the `mtabp' argument to read_mtab(). It served no purpose whatsoever, although read_mtab() did use it as a temporary local variable. - Don't check for impossible conditions when parsing mounttab, and do detect zero-length fields. - Correctly test for strtoul() failures - just testing ERANGE is wrong. - Include a field name in syslog errors, and avoid passing NULL to a syslog %s field. - Don't test if arrays are NULL. - If there are duplicates when writing out mounttab, keep the last entry instead of the first, as it will have a later timestamp. - Fix a few formatting issues. Update rpc.umntall and umount to match the mounttab interface changes.
* Add rpc.umntall utility, to be used by startup and shutdown scriptsdillon1999-11-211-0/+45
to replace (broken) umntall signal code previously in mountd. Submitted by: Martin Blapp <mb@imp.ch>
OpenPOWER on IntegriCloud