summaryrefslogtreecommitdiff
path: root/sbin/mountd/mountd.c
AgeCommit message (Collapse)Author
2003-10-16Check for signals in local svc_run before doing anything else. FixesTodd C. Miller
the bug where signals would not be handled until the next mount request.
2003-10-09Remove errant semicolon introduced in rev 1.60; joshua steinTodd C. Miller
2003-09-26check strdup failure; ok anil millertTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-16Use len+1 as the size parameter to strlcpy() since len does not includeTodd C. Miller
the trailing NUL. From krw@; deraadt@ OK
2003-03-14tweak; millert okTheo de Raadt
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2003-03-09if fopen fails, do not bork; rob@animoid-row.orgTheo de Raadt
2003-01-05spellingTheo de Raadt
2002-07-18fix warningTheo de Raadt
2002-07-18de-lint a bit. use inet_aton(); millert okTheo de Raadt
2002-07-11malloc() failure tests; rimshot@pandora.beTheo de Raadt
2002-06-29ansiTheo de Raadt
2002-06-09rm trailing whitespaceTodd T. Fries
2002-06-04spelling; raj@cerias.purdue.eduTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-04-23In mount.h, rename field export -> export_info, to avoid collision with C++.Marc Espie
Synch files that use that field. (This argument is an internal interface specific to OpenBSD, so it won't cause compatibility problems.) (No bump, not an ABI change). ok art, millert...
2002-04-04Add more debugging info in -d mode. Some from NetBSD (via Brett Eldridge).Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-12-02remove some };Theo de Raadt
2001-11-17volatile sig_atomic_tTheo de Raadt
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-10-03Remove all traces of Kerberised NFS; it never worked in OpenBSD, but itHans Insulander
has been in the userland tools and the manpages for ages. Spotted by Lars Hansson <lars@unet.net.ph> Ok deraadt@ Ok millert@
2001-06-14a typo i madeMichael Shalayeff
2001-05-11use strlcpy instead of strncpy+a[len-1]='\0'Michael Shalayeff
2001-01-17make send_umntall() handler safe alsoTheo de Raadt
2001-01-16use a private svc_run(), which looks at a global touched by SIGHUP handlerTheo de Raadt
2000-12-30Don't do a getnetbyname() if the address is in dot notation already;Angelos D. Keromytis
solves a DNS-related deadlock. Patch by gluk@ptci.ru (PR 1582)
2000-07-05remove SYSLOG(), unused functionTheo de Raadt
2000-05-03Fix behavior when a host is unresolvable. Mark it as type GT_IGNORETodd C. Miller
so we don't get an error that inadvertainly causes the entry to get exported to the world. Also keep a count of unresolved hosts and error out sanely on lines w/ no resolvable hosts. Work by myself and provos@
2000-05-01Remove trailing '/' in exports pathnames so mount requests will matchTodd C. Miller
properly.
1999-04-21Typo in diagnostic; gonter@whisky.wu-wien.ac.atAlex Feldman
1999-03-07Only throw away a line with an empty exports list if the list is emptyTodd C. Miller
due to unresolvable hostnames.
1998-12-28some cleanup, in preperation for a rewrite of the racy gutsTheo de Raadt
1998-08-11proper name is -network not -net; dTheo de Raadt
1998-06-23handle (,,dom); joergTheo de Raadt
1998-03-01If an /etc/exports entry has a single host that cannot be lookedTodd C. Miller
up, throw out the entire line. A previous change that only throws out unknown hosts could leave the export host list null (ie: everyone) if all the listed hosts are unknown.
1997-12-19make mountd abort if getfh() not supported. reported by newsham@secnet.com, ↵Theo de Raadt
fixed by me
1997-09-29Don't ignore a line w/ a bogus hostname, just ignore the bogus hostname...Todd C. Miller
1997-09-13annoying indentation botchTheo de Raadt
1997-08-13handle ext2fs speciallyTheo de Raadt
1997-08-09struct statfs uses a signed short f_flags field. This field is used inNiklas Hallqvist
the long (the type) expression that makes up the mount flags field passed to mount(2). If we are dealing with a noatime mount this means sign extension will occur and the flag field will get messed up. I.e. noatime mounts (at least rw ones) ended up not exportable. I fixed this by casting to u_short in the expressions, but I would like to change struct statfs instead, but that is an API issue it is not for me to decide on. I also added error decoding in two syslog calls. This was made possible by the arglist heuristics printout of OpenBSD/alpha DDB :-)
1997-08-06do not clobber errno in signal handlersTheo de Raadt
1997-06-24in_addr_t all overTheo de Raadt
1997-05-04Fix writing of pid file. From Matthieu Herrb <Mathieu.Herrb@mipnet.fr>Todd C. Miller
Closes OpenBSD PR#178
1997-04-11 - check existing pid file and don't start up if there is alreadyTodd C. Miller
a mountd running - if there is a problem with an entry in an exports line don't throw away the whole line unless it is obviously bogus.
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-1064 bit & -Wall cleanupTheo de Raadt