summaryrefslogtreecommitdiff
path: root/sbin/mount_nfs
AgeCommit message (Collapse)Author
2024-08-19Replace too flexible inet_aton(3) with getaddrinfo(3).Florian Obser
0xdecafbad will no longer work as an IPv4 address, sorry. OK bluhm
2023-11-09sort .xr after previous; from jmcKlemens Nanni
2023-11-09link to showmount(8); OK deraadtKlemens Nanni
2020-01-22remove semicolons not needed after } statements. ok deraadtTed Unangst
2018-01-05Remove useless <sys/socketvar.h> includes.Martin Pieuchot
ok kettenis@, visa@, claudio@, deraadt@
2016-05-27W^X violations are no longer permitted by default. A kernel log messageTheo de Raadt
is generated, and mprotect/mmap return ENOTSUP. If the sysctl(8) flag kern.wxabort is set then a SIGABRT occurs instead, for gdb use or coredump creation. W^X violating programs can be permitted on a ffs/nfs filesystem-basis, using the "wxallowed" mount option. One day far in the future upstream software developers will understand that W^X violations are a tremendously risky practice and that style of programming will be banished outright. Until then, we recommend most users need to use the wxallowed option on their /usr/local filesystem. At least your other filesystems don't permit such programs. ok jca kettenis mlarkin natano
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-05-21Use errc/warnc to simplify code.Philip Guenther
ok jca@ krw@
2012-05-29Fix tyop in error message; this was copied from/to umount(8)'s umount.c ↵Jasper Lievisse Adriaanse
which was just fixed.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-06-06mention that the timeout is in milliseconds... because i always forget.Chris Kuethe
2009-05-12don't define _KERNEL. Theres no need and its gross.Thordur I. Bjornsson
2007-05-31convert to new .Dd format;Jason McIntyre
2007-02-20sort the -o options; from Igor SobradoJason McIntyre
2006-11-10enable -g againAlexander von Gernler
help from millert@, ok deraadt@ pedro@
2006-11-03storing return value of strtol() in int variable was not safe,Alexander von Gernler
also strtol() result was not checked for under/overflow thus, rewrite getopt switch/cases with strtonum() and sensible bounds help from mickey@ millert@, ok millert@, no objections otto@
2006-07-28permit synchronous mountsNikolay Sturm
ok pedro
2006-01-03most modern implementations of nfsd support TCP, not just 4.4BSD;Jason McIntyre
prompted by a similar commit in freebsd. do not recommend TCP; ok millert
2005-06-29ignore (but still accept) -D and -LJared Yanovich
(and other minor cleaning while here: sync usage, whitespace, fix error messages) ok millert
2005-06-29sort optionsJared Yanovich
2005-06-23- cleanup dead flagsJared Yanovich
- minor mdoc/rewording improvements - add some relevant crossrefs ok jmc
2005-04-08Sync with recent realpath(3) changes: on failure, don't use the secondJared Yanovich
argument "resolved", since it is undefined. ok and help millert, otto
2005-02-22- refer to netstat output more preciselyJared Yanovich
(from peter_philipp@freenet.de via PR#4109) - other minor tweaks (mdoc, wording, consistency, etc.) ok jmc
2004-09-15Restore correct noac option parsing.Miod Vallat
ok otto@
2004-08-20Unbreak processing of options when given a command line with multipleOtto Moerbeek
-o options. All of them are relevant, not only the last one. ok miod@ claudio@ marius@
2004-07-16remove netiso traces, millert deraadt okHenning Brauer
2004-06-22Rewrite of getmntopts(), making it more robust and getting rid ofOtto Moerbeek
the mount_nfs alternative implementation of the same function. Joint work with millert@. Fixes PR 3642. ok pedro@ millert@
2004-05-18Backout changes accidentally committed in prvious commit.Otto Moerbeek
2004-05-18Trailers are really wonders of the past. Remove them from man page andOtto Moerbeek
usage. ok millert@
2003-10-07add support for modifying attribute cache parametersHenning Brauer
inspired by PR2567, the included diff was wrong tho and not used here manpage from millert@ ok millert@ on code and jmc@ on manpage
2003-07-29spacesTheo de Raadt
2003-07-06error out on hostspec overflow with a "hostname too long" instead of silentlyAnil Madhavapeddy
truncating; deraadt@ ok
2003-07-03use realpath() in helpers instead of doing it ourselves every time.Ted Unangst
also fixes pr1662. from otto moerbeek
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-05-07typo.Jason McIntyre
2003-04-29Fix parsing of noac option; noticed and OK by henning@Todd C. Miller
2003-04-02nfs -> NFSJason McIntyre
2003-02-09typos;Jason McIntyre
2002-09-14Document -R default (10000); ok deraadtPeter Valchev
2002-06-26Missing .Xr's from Margarida Sequeira <niness@devilness.org>.Federico G. Schwindt
Remove unmount(2) per millert suggestion; millert@ ok.
2002-06-09rm trailing whitespaceTodd T. Fries
2002-03-21o sync usage() to man pageTodd C. Miller
o -l does not require an argument o getopt() returns -1 not EOF From Brian Poole
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-01remove unused variablesTheo 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@
2001-07-13Add noac flag to disable attribute cachingConstantine Sapuntzakis
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
2001-07-07Initialize missing parts of struct nfs_args nfsdefargsTodd C. Miller