From owner-freebsd-bugs Thu Mar 28 09:50:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA23041 for bugs-outgoing; Thu, 28 Mar 1996 09:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA23031 Thu, 28 Mar 1996 09:50:02 -0800 (PST) Resent-Date: Thu, 28 Mar 1996 09:50:02 -0800 (PST) Resent-Message-Id: <199603281750.JAA23031@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, thomas@lemur.nord.de 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 ; 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 ; 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 Reply-To: thomas@lemur.nord.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1105: Bug in find command Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: