Commit Graph

115 Commits

Author SHA1 Message Date
pooka
084e92b62d Reword quite out-of-place (even historically) "nqnfs 2" error message. 2008-10-15 19:06:45 +00:00
pooka
4a6dd4a9c6 Assign default value for retrycnt already in data.
XXX: the use of globals would benefit from a loving touch
2008-09-27 20:39:42 +00:00
lukem
6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
yamt
ca117550c0 remove an unused variable, nfsproto. 2007-11-30 16:13:15 +00:00
yamt
f72b283e28 - fix timeout for -s.
- mention default values of some options.
2007-11-09 12:25:00 +00:00
yamt
3c955ef258 lengthen timeout. i saw a server for which 10s was not enough. 2007-08-05 22:09:12 +00:00
pooka
704e075311 Make all mount(2) return value error checks against -1. Some file
systems just checked != 0, breaking MNT_GETARGS.  Others worked with < 0,
but make them check against -1 too for consistency.  And sprinkle some
stylish line wrapping where appropriate.
2007-07-16 17:06:52 +00:00
dsl
7af7206539 Add additional 'sizeof args' parameter to mount(2). 2007-07-14 15:57:24 +00:00
ginsbach
3d6fea5a84 Add arguments to option descriptions for options that require arguments.
Document all of the NFS specific -o options.
2007-06-01 17:43:19 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
hubertf
d8a2863966 - removes unused ctype.h header
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:30:36 +00:00
yamt
dae26da41f remove the rest of Kerberos 4 code. 2006-12-27 12:43:10 +00:00
yamt
bb0e3db15a sync with header changes. (nqnfs removal) 2006-12-27 12:13:55 +00:00
wiz
211f17ad46 Sort options in usage. 2006-12-27 11:28:59 +00:00
wiz
78cc844673 Sort options. 2006-12-27 11:27:37 +00:00
yamt
b9625c8fbe oops, remove duplicated -D. 2006-12-27 11:08:30 +00:00
yamt
580a1898fe revive -D option because it actually has some meanings for non-nqnfs mounts. 2006-12-27 11:05:04 +00:00
yamt
442aa98fcd remove nqnfs support.
namely,
	- make -q a synonym of -3.
	- ignore -L and -D.
2006-11-09 10:07:00 +00:00
christos
5afd1c0a23 use MOPT_NULL 2006-10-16 03:37:42 +00:00
hubertf
33bed52cb8 Replace strcpy() call with strlcpy() call.
OK'd by christos@
2006-07-07 17:25:01 +00:00
yamt
ebeaf83fb7 do not keep to use nfsv3 filehandle when falling back to nfsv2. 2006-05-20 08:06:48 +00:00
yamt
ae4a112295 replace a magic constant with a macro. 2006-05-20 07:56:28 +00:00
yamt
248ca69bad copy missing copyright notices from
getnfsargs.c and sys/arch/i386/stand/libsa/nfs.c.
2006-05-20 07:48:39 +00:00
wiz
d292467748 Remove Kerberos4/NFSKERB settings. 2006-03-23 23:53:23 +00:00
wiz
637b6cf962 unifdef NFSKERB (Kerberos 4 support). Update man page and usage() for
-K and -m removal (Kerberos 4 specific options).
2006-03-23 23:23:27 +00:00
wiz
c1bf91bf36 Fix typo in Xref. 2006-03-23 20:15:49 +00:00
christos
7067dcb9a4 Always check the results of getmntopts() and free them. 2006-03-21 21:11:41 +00:00
yamt
7273d6e313 whitespace. 2006-01-21 10:55:56 +00:00
dsl
a16ca1845f Use the rpc code from sys/lib/libsa to determine the root file handle.
Saves the code from depending on the xdr functions.
Tested on i386 and IPv4, may need tweaking for IPv6 and using TCP for the
portmap/mount functions.
2006-01-21 10:32:23 +00:00
dsl
c23511b386 Add a missing break!
Maybe 'mount_nfs -oport=<port>' has been broken since the IPv6 changes.
2005-11-12 20:30:21 +00:00
christos
2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
peter
a9b411c198 Change all .Xr config 8 to .Xr config 1, following the recent move of
config from usr.sbin -> usr.bin.

Reviewed by wiz.
2005-06-20 13:25:23 +00:00
lukem
230e9bea1f Use ai_nfs instead of the uninitialized ai when determining the NFSMNT_KERB
reverse IP address, and ensure ecode is set as well.
Detected with gcc -Wuninitialized.
(The bug was introduced in mount_nfs.c rev 1.25.  Hi fvdl! :)
2005-06-02 01:24:45 +00:00
dsl
9abd2f5605 Split getnfsargs() out into its own file, it drags in 70kB of rpc code.
I might manage to write a version that doesn't pull in all the crud.
(Which will give a load of space in the install floppy images)
2005-05-15 21:18:34 +00:00
xtraeme
60fef07963 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 14:55:44 +00:00
erh
fdd16c549b Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
2005-01-31 05:19:18 +00:00
yamt
389f0f7cb8 note that loopback mount is a bad idea. 2005-01-21 15:49:43 +00:00
lukem
7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
fair
22e40d8402 Came in here to add nfsstat(1) reference in SEE ALSO,
but since I was here...

Correct spelling of "Kerberos." Add RFC references.
Reword some awkward english.  Sprinkle mandoc macros throughout.
Add white space to aid readability. Change date.
2004-05-05 00:21:00 +00:00
grant
fc6ca7735c uppercase NFS acronym 2004-01-15 03:33:20 +00:00
agc
276d62f603 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
itojun
e45b6fad8e include des.h, not kerberosIV/des.h 2003-07-23 21:10:36 +00:00
itojun
8883e1fb40 use bounded string op 2003-07-13 08:05:58 +00:00
yamt
a1d2fd4ed9 fix a typo that prevents -o wsize=nnn to work. 2003-05-16 15:33:45 +00:00
yamt
93fa2d7018 remove _KERNEL hack. 2003-05-05 13:23:10 +00:00
christos
c54d6ca813 PR/1472: David Carrel: Add option to specify the nfs port.
This was not done, I added the functionality to be able to parse
port=num in the options. While I was there, I added this for all
the other numeric options: rsize, wsize etc.
2003-04-11 17:39:09 +00:00
lukem
04a792a536 fix typo introduced in previous (print "addr=" instead of "ddr=") 2003-04-10 04:40:38 +00:00
fvdl
253e7c6b6a Don't print the version of the argument structure, it's easily confused
with the NFS version.
2003-04-07 13:31:17 +00:00
wiz
d0ca8fad45 Some casing changes, and use Er for EINTR. 2003-04-06 19:42:59 +00:00