From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 03D01385842B for ; Mon, 19 Sep 2022 08:26:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 03D01385842B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 3044022420; Mon, 19 Sep 2022 08:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663575987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ww3nHSEt/oj/5SANZgLSQsfbf1ysiGh+eV1ZD+9Xisw=; b=bmsftHLZdJVZJD2ngndfyvo/GgFjbO4CnFC0jLpfW33bG0a/Fm4QPuvBJfrfl3lTTneqe6 h4OAUlcjYtR16MCK/nLebIH+YzYOdIjXPXW41LRMIlUEARgjStnWfRhQHlyiVzmJ0wBhcc ZNVhu+l90bunUx05P7B/a325GnKPEh8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663575987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ww3nHSEt/oj/5SANZgLSQsfbf1ysiGh+eV1ZD+9Xisw=; b=4FM6HPCbCVXVcOr8gNko6LGzKR68W+WZXPpd5TEvWrZ8NcJlWzeCaljXZ3EIoJP7zzjO6h ARiYe1011fpKpvDA== Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 2A0572C141; Mon, 19 Sep 2022 08:26:27 +0000 (UTC) Received: by hawking.suse.de (Postfix, from userid 17005) id 2210D44021C; Mon, 19 Sep 2022 10:26:23 +0200 (CEST) From: Andreas Schwab To: Florian Weimer via Libc-alpha Cc: Florian Weimer Subject: Re: [PATCH] Linux: Do not skip d_ino == 0 entries in readdir, readdir64 (bug 12165) References: <87o7vbj1kz.fsf@oldenburg.str.redhat.com> X-Yow: Okay.. I'm going home to write the ``I HATE RUBIK's CUBE HANDBOOK FOR DEAD CAT LOVERS''.. Date: Mon, 19 Sep 2022 10:26:22 +0200 In-Reply-To: <87o7vbj1kz.fsf@oldenburg.str.redhat.com> (Florian Weimer via Libc-alpha's message of "Mon, 19 Sep 2022 08:54:52 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sep 19 2022, Florian Weimer via Libc-alpha wrote: > - if (bytes <= 0) > - { > - /* On some systems getdents fails with ENOENT when the Shouldn't that be "some file systems"? > - open directory has been rmdir'd already. POSIX.1 > - requires that we treat this condition like normal EOF. */ > - if (bytes < 0 && errno == ENOENT) > - bytes = 0; > - > - /* Don't modifiy errno when reaching EOF. */ > - if (bytes == 0) > - __set_errno (saved_errno); > - dp = NULL; > - break; > - } > - dirp->size = (size_t) bytes; > - > - /* Reset the offset into the buffer. */ > - dirp->offset = 0; > + /* Linux fails with ENOENT if IS_DEADDIR is true for the What is IS_DEADDIR? -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."