Menu ▾ ▴

#27 srm exits with 0 in places that it should not

1.2.12
closed-fixed
None
5
2013-12-24
2013-12-24
dak180
No

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.

Discussion

  • Dirk Jagdmann

    Dirk Jagdmann - 2013-12-24

    you are right. I've fixed that now.

     
  • Dirk Jagdmann

    Dirk Jagdmann - 2013-12-24
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,2 +1,2 @@
     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 writa: Operation not permitted" and exit with 0 which makes it somewhat harder to script.
    +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.
    
    • status: open --> closed-fixed
    • assigned_to: Dirk Jagdmann
    • Group: --> 1.2.12
     

Log in to post a comment.