1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/usr.sbin
Ian Dowse 60caaee242 The introduction of IPv6 support from NetBSD's mountd invalidated
a number of assumptions related to the parsing of options in
/etc/exports, and missed a few necessary new error checks.

The main problems related to netmasks: an IPv6 network address
missing a netmask would result in the filesystem being exported to
the whole IPv6 world, non-continuous netmasks would be made continuous
without any warnings, and nothing prevented you specifying an IPv4
mask with an IPv6 address.

This change addresses these issues. As a side-effect we now store
netmasks in sockaddr structs (this matches the kernel interface,
and is closer to the way it used to be). Add a flag OP_HAVEMASK to
keep track of whether or not we have successfully got a mask from
any source. Replace some mask-related helper functions with versions
that use the sockaddr-based masks.

Also tidy up get_net() and fix the code that interprets IPv4 partial
networks such as "127.1" as network rather than host addresses.
Properly zero out some structures that were ending up partially
containing junk from the stack, fix a few formatting issues, and
add a comment noting some assumptions about export arguments.
2001-04-21 20:06:18 +00:00
..
ac - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
accton - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
acpi Remove NOSHARED. 2001-04-01 07:00:35 +00:00
adduser By popular demand, have adduser preserve comments at the top of the 2001-04-17 09:42:07 +00:00
amd give the "netgrent" functions a home in netdb.h 2001-03-27 09:49:03 +00:00
ancontrol MFC candidate 2001-03-30 16:32:52 +00:00
apm - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
apmd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
arp Add the VLAN interface type to the list of ARP-capable interface types. 2001-04-04 15:14:06 +00:00
atm - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
boot0cfg - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
boot98cfg - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
bootparamd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
btxld - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
burncd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
cdcontrol Don't complain about deprecated environment variables, like MUSIC_CD, 2001-04-08 21:35:17 +00:00
chkgrp - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
chown - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
chroot - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ckdist - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
config - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
cron Remove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'. 2001-04-13 01:45:22 +00:00
crunch Document ``special <progname> ident <identifier>'' command. 2001-04-04 08:28:00 +00:00
ctm - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
dev_mkdb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
devinfo Simple tool to print the device tree and resource usage by devices. Also 2001-04-21 00:13:25 +00:00
diskpart - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
dpt - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
edquota - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
elf2exe - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
extattrctl Fix LDADD and add missing DPADD. 2001-03-27 16:45:16 +00:00
faithd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
fdcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
fdformat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
fdwrite - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
getextattr Fix LDADD and add missing DPADD. 2001-03-27 16:45:16 +00:00
gifconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
i4b mdoc(7) police: Prepare for mdocNG. 2001-04-16 15:18:16 +00:00
ifmcstat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
inetd Allow ident requests with trailing junk following the terminating "\n". 2001-03-28 13:41:19 +00:00
iostat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ipftest - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ipresend - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ipsend - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
iptest - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
IPXrouted - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
jail Change NO_MAKEDEV to a finer granularity method: 2001-03-29 14:03:29 +00:00
kbdcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
kbdmap beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
kernbb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
keyadmin - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
keyserv - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
kgmon - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
kgzip - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
lastlogin - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
lpr mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section. 2001-04-13 19:59:47 +00:00
lptcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mailstats - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mailwrapper - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
makemap - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
manctl beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
memcontrol mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
mergemaster mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
mixer Change the behaviour of mixer slightly such that not explicitly specifying 2001-04-09 11:10:34 +00:00
mld6query - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mlxcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mount_nwfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_portalfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mountd The introduction of IPv6 support from NetBSD's mountd invalidated 2001-04-21 20:06:18 +00:00
moused - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mptable - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mrouted Remove spurious extra format string argument. 2001-04-17 07:32:37 +00:00
mtest - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mtree - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
named - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
named.reload beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
named.restart mdoc(7) police: Fixed markup in rev.1.5. 2001-04-13 09:17:56 +00:00
ndc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ndp - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
newsyslog Fix a grammar bogon. 2001-04-02 06:21:13 +00:00
nfsd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ngctl - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
nghook - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
nologin beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
nslookup - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
nsupdate
ntp - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pccard Backout revision 1.6 (removed the NOSHARED bit.) 2001-04-02 08:47:25 +00:00
pciconf - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pcvt mdoc(7) police: misc. markup fixes in the DIAGNOSTICS section. 2001-04-13 20:43:59 +00:00
periodic mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
pim6dd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pim6sd '%' is not a valid format string :-) 2001-04-17 07:35:41 +00:00
pkg_install Fix a problem with tests of the form "1.0" vs. "1.0a". 2001-04-19 22:17:07 +00:00
pnpinfo - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ppp kldload ng_pppoe as necessary 2001-04-10 08:31:13 +00:00
pppctl mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
pppd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pppstats - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
praliases - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
prefix - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
procctl - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pstat mdoc(7) police: you don't need to use enclose macros for blocks of text. 2001-04-04 11:25:07 +00:00
pw - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pwd_mkdb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
quot - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
quotaon - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rarpd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
raycontrol mdoc(7) police: removed hard sentence breaks. 2001-04-04 11:27:36 +00:00
repquota - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rip6query - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rmt - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
route6d - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.lockd Remove section from bugs that says we don't support client locks. 2001-04-19 12:29:43 +00:00
rpc.statd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.umntall - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.yppasswdd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.ypupdated Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
rpc.ypxfrd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpcbind - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rrenumd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rtadvd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rtprio - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rtsold - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rwhod - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sa - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sade Add Greece to the FTP mirror list. 2001-04-20 15:04:59 +00:00
sendmail - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
setextattr Fix LDADD and add missing DPADD. 2001-03-27 16:45:16 +00:00
setkey mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
sgsc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sicontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sliplogin - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
slstat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
spkrtest beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
spray - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
stallion - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sysinstall Add Greece to the FTP mirror list. 2001-04-20 15:04:59 +00:00
syslogd mdoc(7) police: removed hard sentence break. 2001-04-04 11:33:01 +00:00
tcpdchk - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
tcpdmatch - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
tcpdump Style changes. Not purfect, but closer to other Makefiles in the tree. 2001-04-20 17:30:12 +00:00
timed mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section. 2001-04-13 19:59:47 +00:00
traceroute - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
traceroute6 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
trpt mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section. 2001-04-13 19:59:47 +00:00
tzsetup Remove -Wall. It breaks compiling with non-gcc compilers. 2001-04-05 20:52:33 +00:00
usbd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
usbdevs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
vidcontrol Proper upper limit for mousechar start is UCHAR_MAX - 3, not UCHAR_MAX 2001-04-21 13:50:32 +00:00
vipw - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
vnconfig Kill vn related manual pages, they're not used any more. 2001-03-29 11:36:46 +00:00
watch - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
wicontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
wlconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
xten - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
yp_mkdb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ypbind Finally fix __yp_ping(). We can't use the old locally defined clntudp_call() 2001-03-27 21:29:31 +00:00
yppoll - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
yppush - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ypserv - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ypset - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
zic - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
Makefile Turn on devinfo(8) 2001-04-21 00:13:57 +00:00
Makefile.inc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00