From nobody Tue Aug 09 21:40:54 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M2RMV6LHcz4YCpf for ; Tue, 9 Aug 2022 21:40:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M2RMV4r5Bz40dn for ; Tue, 9 Aug 2022 21:40:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M2RMV3vPlzmcv for ; Tue, 9 Aug 2022 21:40:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 279Lesqd033748 for ; Tue, 9 Aug 2022 21:40:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 279LespY033747 for bugs@FreeBSD.org; Tue, 9 Aug 2022 21:40:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265746] Can create/cd directory with ^M at end of name with "mkdir", but can't delete it with "rm" Date: Tue, 09 Aug 2022 21:40:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nc@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660081254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=idy2u/qL+AKv2rkCgHxW3WW+locfqB8cdGIQE0Cn3FM=; b=Y4n1mKSNgOYkYfuzkPHSZxEEh5D1CaCU8uqeR1DLPhfulKN6FwMCjtdBYgRQmI68313Ms3 CJJR+ov/Ep6Hv1OMy7E8IzW0T+HBRxEmWBCh81N1zurJGJ2kJPQ8yeEVFkb4Ji9sgslKhA bBNLfQXvoLaBIPkim/ksNp10vBTrO4HUvar6yf7rr751+gtdoNbPz2DDqOuyQaEeBgLzs2 pHCuQ9n0FjgrEHQfBLiPz+dV8HHtmZ+tA6SzsCeOOfY/HU9qHriPpWHCVjzefxJn82RDBj YHAZoFfjPBXJ2J7ZQ0b8in+0ra0pHZQa9RsjGEOFPdJL5YTyEVfEZNJvgk32yQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660081254; a=rsa-sha256; cv=none; b=u7UZyiQ4Z4lbJhhMxKHL6mwT4YWWU+N5xlaVMzelo4zBDWkqNf6lKO3ghe41fP1NoRB/8B ftX7HBlJO+RVKFZ7TKjArHqVn3H4+Sv9NZWTy6WrSXBpW0C/x+8h0x2y5JOS9L9MNgjf4D RFDjo4umFMqSdRmLjqKWxxSGG2p3e39Xn497D89Yi6M9anl9MtkmpQZxx/rs+ow/1dG+UE s4wDatREYeyEiGI69hqFw6yulCWopudUXORttXCstaRTtevO3tYzhvPKsNBwJ6Af4AAq7H R5Gt54KwaX7AV0uC+J0jeGJyCmDycSMCcr/stob6tlkQ2HavJyj+C1guNWbzJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265746 Bug ID: 265746 Summary: Can create/cd directory with ^M at end of name with "mkdir", but can't delete it with "rm" Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nc@FreeBSD.org Created attachment 235817 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235817&action= =3Dedit Bad DOS-formatted "shar" file which makes a directory ending with ^M When I was importing a "new port" with a DOS-formatted "shar" file, mkdir created a directory with a "^M" at the end of the filename, and I can cd in= to that directory. However, I can't remove a directory ending in "^M" with rm. This bug affects at least rm, if not multiple base system utilities. It may also affect OpenZFS, but I'm not sure. I am using ZFS. Example runtime: # sh ~/bad_shar # cd "jbxvt^M" # pwd /usr/ports/x11/jbxvt # cd .. # rm -r "jbxvt^M/" /: No such file or directory # Shar file attached. --=20 You are receiving this mail because: You are the assignee for the bug.=