Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 1996 18:38:25 +0100
From:      Thomas Wintergerst <thomas@lemur.nord.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1105: Bug in find command
Message-ID:  <199603281738.SAA10186@dagobert.lemur.nord.de>
Resent-Message-ID: <199603281750.JAA23031@freefall.freebsd.org>

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

>Number:         1105
>Category:       bin
>Synopsis:       Bug in find command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 28 09:50:01 PST 1996
>Last-Modified:
>Originator:     Thomas Wintergerst
>Organization:
>Release:        FreeBSD 2.1-STABLE i386
>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;

>Audit-Trail:
>Unformatted:



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