From thomas@lemur.nord.de  Thu Mar 28 09:45:20 1996
Received: from picard.nord.de (root@picard.nord.de [194.45.108.1])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA22592
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Mar 1996 09:45:14 -0800 (PST)
Received: from dagobert.lemur.nord.de (dagobert.lemur.nord.de [194.45.108.74]) by picard.nord.de (8.6.9/8.6.9) with ESMTP id SAA25589 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Mar 1996 18:56:32 +0100
Received: (from thomas@localhost) by dagobert.lemur.nord.de (8.6.12/8.6.12) id SAA10186; Thu, 28 Mar 1996 18:38:25 +0100
Message-Id: <199603281738.SAA10186@dagobert.lemur.nord.de>
Date: Thu, 28 Mar 1996 18:38:25 +0100
From: Thomas Wintergerst <thomas@lemur.nord.de>
Reply-To: thomas@lemur.nord.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: Bug in find command
X-Send-Pr-Version: 3.2

>Number:         1105
>Category:       bin
>Synopsis:       Bug in find command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 28 09:50:01 PST 1996
>Closed-Date:    Tue Jan 28 05:22:31 PST 1997
>Last-Modified:  Tue Jan 28 05:23:33 PST 1997
>Originator:     Thomas Wintergerst
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
>Environment:



>Description:

	The option "fstype" does not handle the argument "msdos" correctly.
	This error results from changing the name for the msdos file system
	from "pcfs" to "msdos".

>How-To-Repeat:

	I changed the script "/etc/daily" to not descend into my DOS
	partition (directory "/dos") while cleaning the directory tree.
	I added the option "... -fstype msdos -a prune -o ..." for the
	find command to do this.

>Fix:
	
	The following patch will solve this problem:

*** usr/src/usr.bin/find/function.c.org	Mon Oct  9 08:57:35 1995
--- usr/src/usr.bin/find/function.c	Tue Mar 26 16:22:05 1996
***************
*** 419,436 ****
  			new->mt_data = MOUNT_MFS;
  			return (new);
  		}
! 		break;
! 	case 'n':
! 		if (!strcmp(arg, "nfs")) {
  			new->flags = F_MTTYPE;
! 			new->mt_data = MOUNT_NFS;
  			return (new);
  		}
  		break;
! 	case 'p':
! 		if (!strcmp(arg, "msdos")) {
  			new->flags = F_MTTYPE;
! 			new->mt_data = MOUNT_MSDOS;
  			return (new);
  		}
  		break;
--- 419,434 ----
  			new->mt_data = MOUNT_MFS;
  			return (new);
  		}
! 		if (!strcmp(arg, "msdos")) {
  			new->flags = F_MTTYPE;
! 			new->mt_data = MOUNT_MSDOS;
  			return (new);
  		}
  		break;
! 	case 'n':
! 		if (!strcmp(arg, "nfs")) {
  			new->flags = F_MTTYPE;
! 			new->mt_data = MOUNT_NFS;
  			return (new);
  		}
  		break;

>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@lcs.mit.edu>
To: thomas@lemur.nord.de
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: bin/1105: Bug in find command
Date: Thu, 28 Mar 1996 13:01:47 -0500

 <<On Thu, 28 Mar 1996 18:38:25 +0100, Thomas Wintergerst <thomas@lemur.nord.de> said:
 
 > 	The option "fstype" does not handle the argument "msdos" correctly.
 > 	This error results from changing the name for the msdos file system
 > 	from "pcfs" to "msdos".
 
 This problem, while is should get fixed, does not exist in Lite-2
 because Lite-2 uses getvfsbyname(3) to interpret filesystem names.
 
 -GAWollman
 
 --
 Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
 wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
 Opinions not those of| It is a bond more powerful than absence.  We like people
 MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant
State-Changed-From-To: open->analyzed 
State-Changed-By: wosch 
State-Changed-When: Wed Sep 18 11:31:06 PDT 1996 
State-Changed-Why:  
This problem does not exist in Lite-2 -GAWollman 
State-Changed-From-To: analyzed->closed 
State-Changed-By: wosch 
State-Changed-When: Tue Jan 28 05:22:31 PST 1997 
State-Changed-Why:  
Fixed in src/usr.bin/find/function.c rev 1.11; Thanks! 
>Unformatted:
