From unknown Tue Aug 19 04:06:39 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#12602 <12602@debbugs.gnu.org> To: bug#12602 <12602@debbugs.gnu.org> Subject: Status: bug in chmod Reply-To: bug#12602 <12602@debbugs.gnu.org> Date: Tue, 19 Aug 2025 11:06:39 +0000 retitle 12602 bug in chmod reassign 12602 coreutils submitter 12602 =D0=93=D0=B0=D0=BB=D1=8C=D1=87=D0=B5=D0=BD=D0=BA=D0=BE =D0= =90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9 severity 12602 normal tag 12602 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 08 12:04:48 2012 Received: (at submit) by debbugs.gnu.org; 8 Oct 2012 16:04:48 +0000 Received: from localhost ([127.0.0.1]:33856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLFp0-0002zT-Fd for submit@debbugs.gnu.org; Mon, 08 Oct 2012 12:04:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38200) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLFHf-0002Ax-WD for submit@debbugs.gnu.org; Mon, 08 Oct 2012 11:30:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLFH4-0008Rn-SL for submit@debbugs.gnu.org; Mon, 08 Oct 2012 11:29:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,BODY_8BITS, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLFH4-0008Ri-Oy for submit@debbugs.gnu.org; Mon, 08 Oct 2012 11:29:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLFH0-0005IL-UB for bug-coreutils@gnu.org; Mon, 08 Oct 2012 11:29:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLFGz-0008QW-Vo for bug-coreutils@gnu.org; Mon, 08 Oct 2012 11:29:38 -0400 Received: from maile.rambler.ru ([81.19.66.15]:7438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLFGy-0008Pw-9c for bug-coreutils@gnu.org; Mon, 08 Oct 2012 11:29:37 -0400 Received: from [10.0.0.150] (unknown [46.151.45.222]) (Authenticated sender: gasx@rambler.ru) by maile.rambler.ru (Postfix) with ESMTP id 40E691A2509A for ; Mon, 8 Oct 2012 19:29:33 +0400 (MSK) Message-ID: <5072F15D.6000703@rambler.ru> Date: Mon, 08 Oct 2012 18:29:33 +0300 From: =?UTF-8?B?0JPQsNC70YzRh9C10L3QutC+INCQ0LvQtdC60YHQtdC5?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: bug in chmod Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 08 Oct 2012 12:04:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) root@desktop:/home/user# chmod a+r * chmod: =D0=BD=D0=B5=D0=B8=D0=B7=D0=B2=D0=B5=D1=81=D1=82=D0=BD=D1=8B=D0=B9= =D0=BA=D0=BB=D1=8E=D1=87 =C2=AB--else=C2=BB =D0=9F=D0=BE=D0=BF=D1=80=D0=BE=D0=B1=D1=83=D0=B9=D1=82=D0=B5 `chmod --hel= p' =D0=B4=D0=BB=D1=8F =D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1= =8F =D0=B1=D0=BE=D0=BB=D0=B5=D0=B5 =D0=BF=D0=BE=D0=B4=D1=80=D0=BE=D0=B1=D0= =BD=D0=BE=D0=B3=D0=BE =D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D1=8F. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 08 12:51:31 2012 Received: (at control) by debbugs.gnu.org; 8 Oct 2012 16:51:31 +0000 Received: from localhost ([127.0.0.1]:33961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLGYE-00047q-I1 for submit@debbugs.gnu.org; Mon, 08 Oct 2012 12:51:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55840) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLGYB-00047a-Po; Mon, 08 Oct 2012 12:51:29 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q98GotoC028481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 8 Oct 2012 12:50:55 -0400 Received: from [10.3.113.147] (ovpn-113-147.phx2.redhat.com [10.3.113.147]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q98Gostg025576; Mon, 8 Oct 2012 12:50:54 -0400 Message-ID: <5073046E.60105@redhat.com> Date: Mon, 08 Oct 2012 10:50:54 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: =?UTF-8?B?0JPQsNC70YzRh9C10L3QutC+INCQ0LvQtdC60YHQtdC5?= Subject: Re: bug#12602: bug in chmod References: <5072F15D.6000703@rambler.ru> In-Reply-To: <5072F15D.6000703@rambler.ru> X-Enigmail-Version: 1.4.4 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig767EE8B375C55C9BFE8EC601" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control Cc: 12602-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig767EE8B375C55C9BFE8EC601 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 12602 notabug thanks On 10/08/2012 09:29 AM, =D0=93=D0=B0=D0=BB=D1=8C=D1=87=D0=B5=D0=BD=D0=BA=D0= =BE =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9 wrote: > root@desktop:/home/user# chmod a+r * > chmod: =D0=BD=D0=B5=D0=B8=D0=B7=D0=B2=D0=B5=D1=81=D1=82=D0=BD=D1=8B=D0=B9= =D0=BA=D0=BB=D1=8E=D1=87 =C2=AB--else=C2=BB > =D0=9F=D0=BE=D0=BF=D1=80=D0=BE=D0=B1=D1=83=D0=B9=D1=82=D0=B5 `chmod --h= elp' =D0=B4=D0=BB=D1=8F =D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1= =8F =D0=B1=D0=BE=D0=BB=D0=B5=D0=B5 =D0=BF=D0=BE=D0=B4=D1=80=D0=BE=D0=B1=D0= =BD=D0=BE=D0=B3=D0=BE =D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D1=8F. Thanks for the report. However, I suspect that what happened is that you have a file in your current working directory whose name starts with '-', and was therefore treated as an option. If I'm right, then this FAQ covers the situation: https://www.gnu.org/software/coreutils/faq/#I-have-a-file-_0027_002df_002= 7-and-it-affects-rm_002e and you can use either of these constructs to avoid the issue: chmod a+r ./* chmod a+r -- * --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig767EE8B375C55C9BFE8EC601 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBCAAGBQJQcwRuAAoJEKeha0olJ0NqsYwIAKcYj6+B+kO0QdFUgxh7pIZx EdxzURc1btziy5T+qZIypbfZGIqt+jKw+Ckch/TQKEp3TPtEAitHyBLsfzOt8IFx 8p7STYWga/JENUetNTCyrVHcfUqQ+CdTdgwFt973OiPgolB3HsYIZ0/6+oYIlZAq u4kVyNILuXzOiQ04rHz3EIlCGJc1ZqhORIEgyNIX3bs3h1CFYTx8r9DSux6u3SJY 5kxpPGU0E+sTxseZcqELgzzN3V/agrdvr9BnDt0QCvxMF5TmMS/gTAFeXhId0Gve Vky4R71ZyFBvg1+FEIm+8V3jQ7YEmi4LWKBUmwE7aSsHZoTIbQp+Q5MyHfo+ww8= =HhPM -----END PGP SIGNATURE----- --------------enig767EE8B375C55C9BFE8EC601-- From unknown Tue Aug 19 04:06:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Nov 2012 12:24:03 +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