Closed Bug 1558516 Opened 6 years ago Closed 6 years ago

[mozdevice] Incorrect check for rm effectiveness

Categories

(Testing :: Mozbase, defect)

57 Branch
defect
Not set
normal

Tracking

(firefox69 fixed)

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

Details

Attachments

(1 file)

The path to rm() (which can be recursive) can be a file or a directory. After executing rm, rm() checks that the path is not a file -- but what if it was a directory?

If path exists in any form after rm, rm() should raise.

Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/48fdaccbf5b8 [mozdevice] Improve check for effectiveness of rm; r=bc

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Type: task → defect
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: