cvs commit: src/sbin/mount mount.c

Ruslan Ermilov ru at freebsd.org
Fri Oct 13 04:38:23 PDT 2006


On Fri, Oct 13, 2006 at 08:11:31PM +0900, Makoto Matsushita wrote:
> >   Modified files:        (Branch: RELENG_6)
> >     sbin/mount           mount.c 
> >   Log:
> >   Remove "late" from options before passing them to the fs.
> >   
> >   Submitted by:   SANETO Takanori <sanewo at ba2.so-net.ne.jp>
> >   Approved by:    re (bmah)
> >   
> >   Revision  Changes    Path
> >   1.69.2.3  +1 -0      src/sbin/mount/mount.c
> 
> After this commit, I got:
> 
> /usr/src/sbin/mount/mount.c: In function `mountfs':
> /usr/src/sbin/mount/mount.c:432: error: `fstab' undeclared (first use in this
> function)
> /usr/src/sbin/mount/mount.c:432: error: (Each undeclared identifier is
> reported only once
> /usr/src/sbin/mount/mount.c:432: error: for each function it appears in.)
> *** Error code 1
> 
> Would you please let me know why?  It seems that variable 'fstab' is not
> declared in mountfs().
> 
%%%
Index: mount.c
===================================================================
RCS file: /home/ncvs/src/sbin/mount/mount.c,v
retrieving revision 1.69.2.3
diff -u -p -r1.69.2.3 mount.c
--- mount.c	13 Oct 2006 07:01:20 -0000	1.69.2.3
+++ mount.c	13 Oct 2006 11:33:19 -0000
@@ -429,7 +429,7 @@ mountfs(vfstype, spec, name, flags, opti
 		}
 	}
 	optbuf = catopt(strdup(mntopts), options);
-	remopt(fstab, "late");
+	remopt(optbuf, "late");
 
 	if (strcmp(name, "/") == 0)
 		flags |= MNT_UPDATE;
%%%


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20061013/8f779a40/attachment.pgp


More information about the cvs-all mailing list