delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/19/05:56:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_54,SPF_PASS
X-Spam-Check-By: sourceware.org
From: Haojun Bao <baohaojun AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: find(1) assertion for folder with a sub-folder named `x:'
Date: Fri, 19 Jun 2009 17:55:48 +0800
Message-ID: <83k5381ra3.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (cygwin)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

hi, 

Here's a test case to make find(1) assertion:
    
    mkdir no-such-dir/foo/bar: -p

    #this will not assert
    find no-such-dir/  

    mkdir no-such-dir/foo/c: -p

    #this will assert now
    find no-such-dir/

    #this wil not assert
    cd no-such-dir/foo/; find .; cd -

    #this `rm' will fail silently
    rm no-such-dir/ -rf || echo rm failed

    #this `rm' will fail with `no such file/dir'
    rm no-such-dir/ -r
    
The `find' assertion is like this:

    assertion "ent->fts_info == FTS_NSOK || state.type != 0" failed: file "/usr/src/findutils-4.5.4-1/src/findutils-4.5.4/find/ftsfind.c", line 475, function: consider_visiting

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019