From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, PDS_RDNS_DYNAMIC_FP,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,RDNS_DYNAMIC, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A8FBB1F8C6 for ; Thu, 5 Aug 2021 18:10:28 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7A080396900F for ; Thu, 5 Aug 2021 18:10:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A080396900F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1628187027; bh=jidBYprlfaIzEAjv2vePg/VEjDLv3qDbke+jWBjAIIM=; h=To:Subject:In-Reply-To:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:From; b=EHAQzLs8U1soVXLuzSrkALVY0BmrJ+Tw+fKVMEyASWxZcijSDGnvmRvNiLiLCZNjE k9tn7IZNGNSPyWDA6tgEB0sWEgEDhRNgr29lQQuO+JeHy1MeGkKs1eyIlaCtPA6fHW 41w3NWzh7SbUYcNO/UTx71z555j1tvhsh6JnEnL0= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 6C71B3858D3C for ; Thu, 5 Aug 2021 18:10:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6C71B3858D3C Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-417-6rdc_75ROnGJZOTnx1_s8g-1; Thu, 05 Aug 2021 14:10:06 -0400 X-MC-Unique: 6rdc_75ROnGJZOTnx1_s8g-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E19B2190A7A1; Thu, 5 Aug 2021 18:10:05 +0000 (UTC) Received: from greed.delorie.com (ovpn-112-6.rdu2.redhat.com [10.10.112.6]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF66360E1C; Thu, 5 Aug 2021 18:10:05 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.15.2/8.15.2) with ESMTP id 175IA4c51060923; Thu, 5 Aug 2021 14:10:04 -0400 To: Paul Eggert Subject: Re: glob vs '*/' vs GLOB_ONLYDIR vs xfs In-Reply-To: Date: Thu, 05 Aug 2021 14:10:04 -0400 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: DJ Delorie via Libc-alpha Reply-To: DJ Delorie Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Paul Eggert writes: > Isn't that a bug in XFS? readdir should set d_type to DT_UNKNOWN if it > doesn't know the type. It shouldn't set d_type to garbage. XFS sets d_type to DT_UNKNOWN for most entries, not garbage. > Doesn't glob do the right thing if d_type is DT_UNKNOWN? No, if by "right thing" you mean "call lstat and find out the right type".