NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56398 (`mkdir -p -m` fails to assign the correct mode with trailing slashes)



The following reply was made to PR kern/56398; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/56398 (`mkdir -p -m` fails to assign the correct mode with
 trailing slashes)
Date: Mon, 13 Sep 2021 11:53:53 +0200

 I agree with mlelstv too (I overlooked the -p intermediate elements handling).
 
 I think the change was done after the kernel was fixed to ignore trailing
 slash on directory components, i.e. in ancient times there were
 differences between
 
 	chmod a-wx test/dir/.
 	chmod a-wx test/dir/
 	chmod a-wx test/dir
 
 and nowadys there shouldn't - but unrelated to this, as mlelstv said:
 the parser should be enhanced instead of plain stripping the trailing slashes.
 
 Martin
 


Home | Main Index | Thread Index | Old Index