Re: [dev] [sbase] rm missing error message?

From: Hiltjo Posthuma <>
Date: Fri, 16 Jun 2017 20:14:58 +0200

On Fri, Jun 16, 2017 at 02:08:24PM -0300, Marc Collin wrote:
> Hello all.
> I found a case where sbase rm command fails but doesn't output any
> error message, making it look like it succeeded.
> mkdir ./test
> mkdir ./test/test
> sudo chown root:root ./test
> sudo chown root:root ./test/test
> rm -rf ./test
> rm won't output anything and exit (apparently) cleanly.
> But the ./test directory won't be deleted.
> Shouldn't a meaningful message be printed to warn about the failure?
> Regards.


Regarding the status code: you specify -f so the exit status is not

I'm not sure if it's required to print a warning message with the -f option.
My interpretation is it's not neccesary. However on OpenBSD it says:

        $ rm -rf test/
        rm: test/test: Permission denied
        rm: test: Operation not permitted

I don't fully understand the wording in POSIX on the page[0].


Kind regards,
Received on Fri Jun 16 2017 - 20:14:58 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 16 2017 - 20:24:15 CEST