Date: Fri, 6 Sep 2002 12:59:29 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mount_nfs mount_nfs.c Message-ID: <200209061959.g86JxTS9019217@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 2002/09/06 12:59:29 PDT
Modified files:
sbin/mount_nfs mount_nfs.c
Log:
Bandaid for mount_nfs segfaulting with the more obscure mount options
in /etc/fstab. This isn't a real fix though and I'm still not sure
why it started failing. mount(8) breaks up the nfs args into seperate
repeated '-o option=value' arguments. But, the altflags variable that
we use to track things is incrementally built up each time we see the
next option and shows us the cumulative set of flags, not just the
flag that we are currently looking at. As a result, the strstr hack
for looking up flags in a giant -o opt=val,opt=val, etc string was failing
and causing a segfault. I do not know what changed recently that caused
this to suddenly break, but the code has been rather bogus for some time.
Revision Changes Path
1.56 +34 -22 src/sbin/mount_nfs/mount_nfs.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209061959.g86JxTS9019217>
