chmod: expected behavior for no change?

2024-03-09 Thread Bernhard Voelker
In [1], the point is raised why the following fails (as a non-privileged user): > $ chmod a+x /usr/bin/ls > chmod: changing permissions of '/usr/bin/ls': Operation not permitted > > However, /usr/bin/ls is already executable, there is no need to change permissions, > hence no need to report a pr

Re: chmod: expected behavior for no change?

2024-03-09 Thread Dragan Simic
Hello, On 2024-03-09 10:00, Bernhard Voelker wrote: In [1], the point is raised why the following fails (as a non-privileged user): $ chmod a+x /usr/bin/ls chmod: changing permissions of '/usr/bin/ls': Operation not permitted However, /usr/bin/ls is already executable, there is no need to ch

stdbuf feature request - line buffering but for null-terminated data

2024-03-09 Thread Zachary Santer
'stdbuf --output=L' will line-buffer the command's output stream. Pretty useful, but that's looking for newlines. Filenames should be passed between utilities in a null-terminated fashion, because the null byte is the only byte that can't appear within one. If I want to buffer output data on null