[Bug 265746] Can create/cd directory with ^M at end of name with "mkdir", but can't delete it with "rm"

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 13 Aug 2022 06:07:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265746

Graham Perrin <grahamperrin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grahamperrin@gmail.com

--- Comment #2 from Graham Perrin <grahamperrin@gmail.com> ---
(In reply to Neel Chauhan from comment #0)

Without attempting to run bad_shar

tmpfs for /tmp and ZFS (OpenZFS) for /var/tmp seem to be OK for me: 

% cd /tmp
% mkdir directory^M
% file directory^M
directory^M: directory
% rm -r directory^M
% cd /var/tmp
% mkdir directory^M
% file directory^M
directory^M: directory
% rm -r directory^M
% less /tmp/bad_shar 
% echo $0
/bin/tcsh
% whoami
grahamperrin
% date 
Sat 13 Aug 2022 06:55:42 BST
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #16
main-n256889-17a4a163df85: Sun Jul 24 13:20:10 BST 2022    
grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
amd64 1400064 1400064
%

-- 
You are receiving this mail because:
You are the assignee for the bug.