Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  2 Jun 1999 07:07:06 -0700 (PDT)
From:      dima@server.ru
To:        freebsd-gnats-submit@freebsd.org
Subject:   bin/11992: /usr/src/sbin/mountd/mountd.c has '#ifdef __NetBSD' a msdosfs_args in union 'args' that used in mount call
Message-ID:  <19990602140706.150DF15124@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         11992
>Category:       bin
>Synopsis:       /usr/src/sbin/mountd/mountd.c has '#ifdef __NetBSD' a msdosfs_args in union 'args' that used in mount call
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun  2 07:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Kazarov
>Release:        FreeBSD-3.2-STABLE
>Organization:
Server Inc
>Environment:
>Description:
lines 1647-1654 of /usr/src/sbin/mountd/mountd.c are:
union {
        struct ufs_args ua;
        struct iso_args ia;
        struct mfs_args ma;
#ifdef __NetBSD__
        struct msdosfs_args da;
#endif
} args;

late in lines 1730-1731 that union used in mount (2) call:
while (mount(fsb->f_fstypename, ... , (caddr_t)&args) < 0 ) {

Other occurences of msdosfs are not #ifdef-ed (lines 66, 775-780, 784) so that ifdef could case a problem on exporting msdos fs. 
>How-To-Repeat:
Just look there
>Fix:
Remove lines 1651 and 1653.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990602140706.150DF15124>