enami
e1d0d284cf
Free the storage allocated by fparseln when skipping an empty line.
2000-07-19 08:41:13 +00:00
itojun
b141a4af1e
always check getnameinfo errors. pass NI_WITHSCOPEID to
...
getnameinfo if declared.
2000-07-16 14:07:39 +00:00
itojun
55108de1d4
remove debug printf().
2000-07-16 08:13:34 +00:00
itojun
aa16ae57f1
fatal typo: need listen(tcp6sock).
2000-07-16 08:11:34 +00:00
enami
8ab9946e10
Substitute the cross reference to portmap(8) with rpcbind(8).
2000-07-03 10:06:24 +00:00
thorpej
3a1d089614
Add some extra instrumentation in the `debug' case.
2000-06-27 20:32:28 +00:00
enami
bc066a6ce1
Avoid null pointer dereference; the `addrp' is NULL if a mount point
...
is default exported.
2000-06-21 02:48:31 +00:00
hubertf
25ad63a22f
Tell people how to make the system re-read this file after changing it
...
Fixes PR 10398 by John Refling <refling@comet.lbl.gov>.
2000-06-20 00:54:04 +00:00
fvdl
95e20d99e4
Don't try to push v6 addresses into the kernel when they're not supported.
2000-06-19 23:44:16 +00:00
hannken
a2c3edb415
Fix bad registration of mountd/tcp/v3 on port of mountd/udp/v3.
2000-06-16 11:34:55 +00:00
itojun
1a658c5964
avoid memory leak and duplicated free.
2000-06-13 01:08:43 +00:00
itojun
dbfdf59395
mountd(8) supports scoped IPv6 address properly (exports(5) requires
...
scope identifier). remove mention in BUGS section and add note on
scope identifier.
2000-06-12 15:40:35 +00:00
itojun
20b4e05ffe
check scope id when we compare two AF_INET6 sockaddrs.
...
XXX still not sure if it is enough, so I do not remove warning from
documentation yet.
2000-06-10 08:01:07 +00:00
itojun
1ba6c2716a
support IPv6 addresses start with hex digit or colon (like ::1).
...
in manpages, warn that scoped IPv6 addresses are not supported.
2000-06-10 07:04:13 +00:00
itojun
739ca10641
bark if too-big-masklen on "-network prefix/masklen".
2000-06-10 04:40:17 +00:00
fvdl
65c642a530
Make address handling in mountd more generic, to allow IPv6 mounting.
...
Add IPv6 example to exports manpage. Allow /prefix notation for
networks.
2000-06-09 00:03:31 +00:00
fvdl
548ea61860
Fix last arg to clnt_broadcast.
2000-06-03 14:20:49 +00:00
fvdl
376d66b867
Note that -kerb option is not implemented.
2000-02-17 09:05:07 +00:00
enami
700450f288
Backout revision 1.58-1.61; Since we currently only have a way to unexport
...
per mount point, the way ``try to export and unexport an unnecessary
mount point later'' may leave unwanted information in the kernel, and
doesn't work if a mount point is default exported or publically exported.
To fix the race condtion, we need another way.
2000-02-16 04:08:40 +00:00
dante
963f51342e
Fix a bug which caused mountd to don't work at all
2000-02-16 01:27:14 +00:00
enami
2d2a3fa400
Fix path component parsing bug that I've introduced in previous commit.
2000-02-15 04:51:56 +00:00
enami
39fdef6641
If failed to export some mount point, unexport and try again. This is a
...
workaround to fix the bug that mountd fails to export the currently exported
mount point if it is exported everyone or only export option is changed.
2000-02-03 09:59:22 +00:00
sommerfeld
3fc2334c5d
After some light testing, it worked for me, so...
...
Commit mrg's fix from pr8791: don't un-export filesystems which are just going
to be re-exported; instead, do additions, then deletions.
1999-11-14 14:37:16 +00:00
jdolecek
7ee18b2d1f
Add ntfs to the list of exportable filesystem types, now that's it's actually
...
exportable
1999-09-10 16:20:22 +00:00
mjl
fecb1c8c63
Reorder arguments to error message so the message actually makes
...
sense. Closes PR/ by Martin Berger <>.
1999-08-25 17:26:20 +00:00
simonb
299578ebd5
Spell "privilege" correctly (correct spelling from Jonathan Stone).
1999-08-16 02:59:22 +00:00
perseant
708391677c
Add nullfs, umapfs, unionfs to the list of exportable filesystem types, now
...
that these FSs are in fact exportable. (Left over from PR 5603.)
1999-08-09 20:22:39 +00:00
thorpej
78688ba793
Use pidfile(3).
1999-06-06 01:50:23 +00:00
christos
f3fc048278
iPr/6121: Mycroft, diagnostics messages were not helpful.
1999-01-12 15:11:53 +00:00
christos
f4e84d3075
PR/6409: Martin Husemann: /etc/exports parsing breaks if file has empty lines.
1998-11-07 18:31:36 +00:00
christos
a8fd643677
free line returned by fparseln().
1998-11-02 15:38:26 +00:00
christos
337e834927
Initialize struct statfs properly while parsing each line.
1998-11-01 18:30:26 +00:00
christos
bfef833a84
fix the size_t printf and initialize lineno.
1998-10-29 14:13:27 +00:00
christos
11cf3e1970
- KNF, remove extraneous casts
...
- split up parsing code
- centralize malloc checking
- use fparseln.
1998-10-29 12:57:02 +00:00
ross
5a7c45f748
Fix two ancient bugs involving netgroups where mountd may try to free(3)
...
a string constant in one place and a null char ** in another. Why the
recent rather minor changes by Christos uncovered these bugs after so much
time is a mystery to me.
1998-10-29 00:12:11 +00:00
christos
c7b4cd5f50
Explain what happens when there is no host set specified in the exports
...
line, or when a netgroup that has no host is in the set.
1998-10-07 14:52:30 +00:00
christos
f491057836
Explains what happens when we get SIGTERM...
1998-10-07 14:51:36 +00:00
christos
479c0bbe47
- Add some MIT KRB/NFS pieces, someday I'll commit the rest.
...
- fix prototypes for signal handlers.
- use constants from rpcsvc/mount.h, instead the RPCMNT crap.
- don't core-dump when finding a netgroup that has no host part,
complain instead
1998-10-07 14:50:35 +00:00
fvdl
e2380de37c
Clarify -n comment.
1998-07-15 22:00:59 +00:00
mrg
84ce584a5f
- standardise some option processing
...
- don't bother copying the exports filename, it isn't necessary
- unblock SIGHUP after returning "mount refuse" error
- KNF, and remove the singular register
1998-07-13 14:24:24 +00:00
fair
c46ab392dc
Principally, change foo(N) to .Xr foo N
...
Also, do some other mdoc tagging.
1998-04-28 04:07:04 +00:00
fvdl
e5bc90f40c
Merge with Lite2 + local changes
1998-03-01 02:20:01 +00:00
fvdl
ed4bb065a1
When getting an unmount request from a non-reserved port, don't loop
...
forever.
1998-02-21 23:32:19 +00:00
perry
34a98169f0
macroize BSD, NetBSD, FreeBSD and misc cleanup
1998-02-06 05:54:12 +00:00
fvdl
88d9f0f6a9
Add a warning about exporting a filesystem using WebNFS and also exporting
...
it the normal way, read/write to specific clients.
1997-10-19 15:29:20 +00:00
lukem
f5bf267d90
enable WARNS=1 by default, but disable in unclean 3rd party code
1997-10-18 06:42:25 +00:00
lukem
aa125494d1
- use .Nm instead of .Xr
...
- don't refer to the command as /sbin/mountd - it's not there anymore
1997-09-14 02:26:14 +00:00
lukem
77735b9c46
update for WARNS?=1
...
check getopt() against -1 not EOF
1997-08-28 08:09:53 +00:00
lukem
5010818f51
Prevent info gathering attacks by returning EACCES when a directory
...
doesn't exist as well as when there aren't enough privileges.
As highlighted on BUGTRAQ.
1997-08-28 05:49:15 +00:00
bouyer
2d20417591
Add MOUNT_EXT2FS to the list of filesystem which need to be deleted from
...
the export list in the kernel when re-reading /etc/exports.
1997-08-13 12:36:04 +00:00