GNOME Bugzilla – Bug 753590
[PATCH] return ENOTEMPTY if trying to delete a non-empty directory
Last modified: 2015-08-30 18:21:50 UTC
Created attachment 309211 [details] [review] MTP: return ENOTEMPTY if trying to delete a non-empty directory rmdir (through gvfs-fuse) acted as rm -rf before this patch, which caused easy data loss.
Review of attachment 309211 [details] [review]: Looks good. Thanks.
Created attachment 310292 [details] [review] mtp: Fix error handling from a807f12d5663 After commit a807f12d5663 ("MTP: return ENOTEMPTY if trying to delete a non-empty directory"), G_IO_ERROR_NOT_EMPTY is returned if a generic error occurs when deleting. Fix it by calling fail_job() as the rest of the code does.
Thanks for the original fix. Attached is a small update for it.
Review of attachment 310292 [details] [review]: Thanks!
Comment on attachment 310292 [details] [review] mtp: Fix error handling from a807f12d5663 Pushed to master as fdba530. Thanks for the review.