bin/53863: [PATCH] mount_smbfs: argument 2 of getvfsbyname(3) has wrong type

Lukas Ertl l.ertl at univie.ac.at
Fri Jun 27 18:30:08 PDT 2003


>Number:         53863
>Category:       bin
>Synopsis:       [PATCH] mount_smbfs: argument 2 of getvfsbyname(3) has wrong type
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 27 18:30:05 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Lukas Ertl
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Vienna University Computer Center
>Environment:
System: FreeBSD korben 5.1-CURRENT FreeBSD 5.1-CURRENT #15: Fri Jun 20 18:17:06 CEST 2003 le at korben:/usr/obj/usr/src/sys/KORBEN i386


	
>Description:

mount_smbfs uses a 'struct vfsconf' to getvfsbyname(3) instead of a
'struct xvfsconf', thus giving a compiler warning.

>How-To-Repeat:
	
>Fix:

	

--- mount_smbfs.diff begins here ---
Index: contrib/smbfs/mount_smbfs/mount_smbfs.c
===================================================================
RCS file: /usr/local/bsdcvs/src/contrib/smbfs/mount_smbfs/mount_smbfs.c,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 mount_smbfs.c
--- contrib/smbfs/mount_smbfs/mount_smbfs.c	22 Apr 2002 16:15:20 -0000	1.1.1.4
+++ contrib/smbfs/mount_smbfs/mount_smbfs.c	28 Jun 2003 00:31:23 -0000
@@ -75,7 +75,7 @@
 	extern void dropsuid();
 	extern int loadsmbvfs();
 #else
-	struct vfsconf vfc;
+	struct xvfsconf vfc;
 #endif /* APPLE */
 	char *next;
 	int opt, error, mntflags, caseopt;
--- mount_smbfs.diff ends here ---


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


More information about the freebsd-bugs mailing list