From unknown Mon Jun 23 11:25:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64604 <64604@debbugs.gnu.org> To: bug#64604 <64604@debbugs.gnu.org> Subject: Status: readlink exit booelan value bug Reply-To: bug#64604 <64604@debbugs.gnu.org> Date: Mon, 23 Jun 2025 18:25:18 +0000 retitle 64604 readlink exit booelan value bug reassign 64604 coreutils submitter 64604 Budi severity 64604 normal tag 64604 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 13 22:38:18 2023 Received: (at submit) by debbugs.gnu.org; 14 Jul 2023 02:38:18 +0000 Received: from localhost ([127.0.0.1]:41133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8hG-0001Rb-Dc for submit@debbugs.gnu.org; Thu, 13 Jul 2023 22:38:18 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8hE-0001RN-0C for submit@debbugs.gnu.org; Thu, 13 Jul 2023 22:38:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qK8h8-0006Og-QO for bug-coreutils@gnu.org; Thu, 13 Jul 2023 22:38:10 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qK8h6-0006CZ-My for bug-coreutils@gnu.org; Thu, 13 Jul 2023 22:38:10 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fbf1b82de7so8712935e9.1 for ; Thu, 13 Jul 2023 19:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689302287; x=1691894287; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=eh3mIpoppxS8qEMArEPEZx22ni9fYNpN541Ilt+xL58=; b=OvB0CC3oMROKvjk13y9gWEf63ZUwh/bjMaA+AWQ5Bd616irpb64N6jzWb7B5nY4fmo pdNQX1Rvl1PxWvpmZ88umPywLy1VeT1jPRudAZ0CXcu4+GySp/QJZNWG4FXr1UyRWsBc 58kIiPvESBhlK5+1fGWWrwadrC06aY5RUdJcOI2cC1GlzCjuhvPw59Q0WUodmSzTuInv tvK04IQqWay/yzGdLe+Avfzo1vRgJLvG8tSRlohIxEHottrjG8EHqIDrs7ISOaJQoc0e E3pxZWWjKRcMQ3iQDgIaymsSdUqe7pYkXQm/rXFCjJBj0fn+d1GnMYNdZfktK4ocXyyC Z+9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689302287; x=1691894287; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eh3mIpoppxS8qEMArEPEZx22ni9fYNpN541Ilt+xL58=; b=azivuQJzP7gRC01IahdY+CG6Frh0BgSz7xkp4U6B6gROoPgb0IKn+LYuQTqQrQVS5r 8pxX6qol0dmopGr0ayzUECvjoRbPD79F0nfQaCjP7Zm/vEkhxckcEojRHa3df/ERRBOZ 0mFdWZAPB8pqog1s0HBdkTE08QWpr/tISxGnXV+QkIyyeAee0IWr6Bap4/wM6M28kmLG 5sjehmEVGdzR/qgqA4W0FWGBeZcaw0FGx20Eye00rPqxOmVzAOhDsBrMc4/AJYbf2S94 yMh41mDEvIcUMH9WFroOJjn1uP9rrfrGi8AxxaNquDGuqhHbODC4vNxZgGSdLNxFLviO rwTg== X-Gm-Message-State: ABy/qLbBzQMhFBduDNuystcDYjEHV3D10nz59Xu2IrDGg6rhZFNgWN4Q wbuPs4FhaBxTD6F0dNyaUxrtXSN4TJH9AKBdNoVT7kQQ X-Google-Smtp-Source: APBJJlEV7SQ5fF0VGvx2ANm+ygTo+mMVzFRKxO8/jqmzkoM5bD2WINLcEWZRIowk2gxcV/gErtTUxP2+ao57ji/2ZfI= X-Received: by 2002:a05:600c:3b0a:b0:3fb:ebe2:6f5f with SMTP id m10-20020a05600c3b0a00b003fbebe26f5fmr904752wms.13.1689302286677; Thu, 13 Jul 2023 19:38:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6021:4586:b0:290:25e9:9dde with HTTP; Thu, 13 Jul 2023 19:38:06 -0700 (PDT) From: Budi Date: Fri, 14 Jul 2023 09:38:06 +0700 Message-ID: Subject: readlink exit booelan value bug To: bug-coreutils@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=budikusasi@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) EDIT ABOVE MAIL TO HAVE TITILE readlink exit value is TRUE as it actually must be FALSE at first depth dir. with -f or -e option e.g. in /tmp dir: /tmp$ readlink -f ./KERNEL-linux-6.3.9 && echo SUCCEEDS FIND IT /tmp/KERNEL-linux-6.3.9 SUCCEEDS FIND IT but correct at deeper depth: /tmp$ readlink -f ./KERNEL-linux-6.3.9/fs && echo SUCCEEDS FIND IT look it up, no KERNEL-linux-6.3.9 dir.: /tmp$ ls -Apv .ICE-unix/ opera/ .X11-unix/ ssh-Xbe0jzj/ .xfsm-ICE-1BY671 .org.chromium.IfJAAT/ dbus-QZsDmoWAoc On 7/14/23, Budi wrote: > readlink exit value is TRUE as it actually must be FALSE at first > depth dir. with -f or -e option e.g. in /tmp dir: > > > /tmp$ readlink -f ./KERNEL-linux-6.3.9 && echo SUCCEEDS FIND IT > /tmp/KERNEL-linux-6.3.9 > SUCCEEDS FIND IT > > but correct at deeper depth: > > /tmp$ readlink -f ./KERNEL-linux-6.3.9/fs && echo SUCCEEDS FIND IT > > > > look it up, no KERNEL-linux-6.3.9 dir.: > > /tmp$ ls -Apv > .ICE-unix/ opera/ > .X11-unix/ ssh-Xbe0jzj/ .xfsm-ICE-1BY671 > .org.chromium.IfJAAT/ dbus-QZsDmoWAoc > From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 13 22:51:43 2023 Received: (at control) by debbugs.gnu.org; 14 Jul 2023 02:51:43 +0000 Received: from localhost ([127.0.0.1]:41155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8uE-0001qE-RO for submit@debbugs.gnu.org; Thu, 13 Jul 2023 22:51:43 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:54112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8u9-0001px-3S for control@debbugs.gnu.org; Thu, 13 Jul 2023 22:51:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id BE0093C011BD4 for ; Thu, 13 Jul 2023 19:51:30 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id N2cPIveoEnV3 for ; Thu, 13 Jul 2023 19:51:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 70CA23C011BD8 for ; Thu, 13 Jul 2023 19:51:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 70CA23C011BD8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1689303090; bh=jWxX6Ss0Vr5cP+WH3YffnGGkbc9P/NUuGZZpPv49uVk=; h=Message-ID:Date:MIME-Version:To:From; b=q/mDt0tqzP2j7nh6DvVcEF4ojzWQvgCO05aJ7dgfYt93h/GBKyKL3H9wx4QxLwAsm WPW/+waKpNwg8AoT/QxnbqcKyU+pbp0pGTz8Wh81VsKBwU0xhvVhWnjLDhRxrwza+E tMwmPHk3YrEVyPRlYh7SXMkCLTtLxTlfydHVRqaicfb61ZnelVaIbYHtDmsnsNaCzt gOtb4q8hEKgpxY8yeuV1I36HpLpPp1XB5KKDPaWTtY0a3V3TBhFya8jwu3HvL6E0/h bC65f8i2e63nQLJDxwtPyYEEfw3xH9oiBUETnVH44lhizBZOWyCbZoPAnirOmUuwto e0zfAbZNadwDQ== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jKnJa0saIfvN for ; Thu, 13 Jul 2023 19:51:30 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 4EE603C011BD4 for ; Thu, 13 Jul 2023 19:51:30 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2023 19:51:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: control@debbugs.gnu.org From: Paul Eggert Subject: merge 64604 64603 Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) merge 64604 64603 From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 13 22:54:58 2023 Received: (at control) by debbugs.gnu.org; 14 Jul 2023 02:54:59 +0000 Received: from localhost ([127.0.0.1]:41165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8xO-0001v9-L5 for submit@debbugs.gnu.org; Thu, 13 Jul 2023 22:54:58 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:41378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8xN-0001uw-5v for control@debbugs.gnu.org; Thu, 13 Jul 2023 22:54:57 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id DDD853C011BD4 for ; Thu, 13 Jul 2023 19:54:51 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id OB5qaZ1fEgEF for ; Thu, 13 Jul 2023 19:54:51 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 96A103C011BD8 for ; Thu, 13 Jul 2023 19:54:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 96A103C011BD8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1689303291; bh=UnNF4quPB0oMlCAHuYuVRoSdlLRmnoMMy3JqnsQBIvE=; h=Message-ID:Date:MIME-Version:To:From; b=UUsNxGa1tJR7s89jggkhNG8DLpquEQe/3XKtZNeTa9nSQAQcz65rWhNoCeUvTVBBm qEtuztoHMZE2WDWI3InsNwz9v/Gn0fEtlYJY5CgkE4avTeZ+h/eveCLd8gVQqHUavh WWixO8HXvNg3VTXTSkWp8p1efKslXBgBpRr1dqBUUq/UTR+rTy8PbUcpDMOZ1xF3L1 SgpngPFryxi7ThKDd9UCig1C+YhjSjzTZRyaTCbXBIpdX0uO6hJtZYGiw6l1Lh9oSe 2hx8nUq5ePEBEeMO98LleVD9ii8VQhiYs5T8AO2xmFth6Jt1Pweemptjs/omrHdkNZ MBBswixxYe86Q== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2H2yJSLSROL0 for ; Thu, 13 Jul 2023 19:54:51 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 7BD123C011BD4 for ; Thu, 13 Jul 2023 19:54:51 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2023 19:54:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: control@debbugs.gnu.org From: Paul Eggert Subject: 64604 is not a bug Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 64604 notabug From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 13 22:54:16 2023 Received: (at 64604-done) by debbugs.gnu.org; 14 Jul 2023 02:54:16 +0000 Received: from localhost ([127.0.0.1]:41161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8wi-0001uG-AW for submit@debbugs.gnu.org; Thu, 13 Jul 2023 22:54:16 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:60628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qK8wh-0001u6-B0 for 64604-done@debbugs.gnu.org; Thu, 13 Jul 2023 22:54:15 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 0D64A3C011BD4; Thu, 13 Jul 2023 19:54:10 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id CLh3yC9-sl-l; Thu, 13 Jul 2023 19:54:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id AA4AA3C011BD8; Thu, 13 Jul 2023 19:54:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu AA4AA3C011BD8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1689303249; bh=lo4ehQ2fz+izP1677I76Ahiie7JTg+KUGS/K0E2hwH4=; h=Message-ID:Date:MIME-Version:To:From; b=AfOc3cF+DHa9wB0GG1S7uTQDyXtNiNqJow4DOhfY5aUsxBOCoXcziO0V6nCQjI9rV PPS0MHemFEYOInTaayOMQ+CKCsfhajBceZOADUjYXRQaO7JQFmFcs/vN6IYv6nLK7r 7lBrUurafMXQ6r0LJKBPTeiS/hjKMMoLV2uedbI8E4bfFtg9JW7u2bfJb8ljlm8hVr 9wExfbf4OPUd+T1Cd6fYOZJgMtrgFdcWuhl7w8q0XRdChGNZToFHPnQcOwmUdOoMA+ JvKbfPA7rtevnToDGm1lQUngK6EJftDleTYJwRkC7SmBztuzqu6YiQx4NKGlWYYjyT a7fAKHtRjfSXg== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FyWgHdW0f-od; Thu, 13 Jul 2023 19:54:09 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 893343C011BD4; Thu, 13 Jul 2023 19:54:09 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2023 19:54:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bug#64604: readlink exit booelan value bug Content-Language: en-US To: Budi , 64604-done@debbugs.gnu.org References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 64604-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 2023-07-13 19:38, Budi wrote: > /tmp$ readlink -f ./KERNEL-linux-6.3.9 && echo SUCCEEDS FIND IT > /tmp/KERNEL-linux-6.3.9 > SUCCEEDS FIND IT > > but correct at deeper depth: > > /tmp$ readlink -f ./KERNEL-linux-6.3.9/fs && echo SUCCEEDS FIND IT > > > > look it up, no KERNEL-linux-6.3.9 dir.: That's not a bug. The documentation for -f says that the last component need not exist. Sounds like you want -e. From unknown Mon Jun 23 11:25:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Aug 2023 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator