srm exits with 0 in places that it should not
srm is a command-line program to delete files securely.
Brought to you by:
doj
When rm is (because of insufficient permissions) not permitted to act it exits with a code >0.
srm on the other hand will happily fail with "srm: Unable to reset test.z to writable: Operation not permitted" and exit with 0 which makes it somewhat harder to script.
you are right. I've fixed that now.
Diff: