GNOME Bugzilla – Bug 771487
Nautilus segfaults on undo after failed batch rename attempts on read-only files.
Last modified: 2016-09-21 20:46:03 UTC
How to reproduce: 1. Create a folder mkdir test 2. Create some files inside the folder touch 1.txt 2.txt 3. Make the 'test' folder read only. chmod 455 test 4. Now in Nautilus select both 1.txt and 2.txt and batch rename to some other name. It won't, because the parent directory is read-only. 5. Now do Ctrl+Z (undo). Nautilus now segfaults with the following error: ** ERROR:/home/sadiq/jhbuild/checkout/nautilus/src/nautilus-file.c:713:nautilus_file_get_internal: assertion failed: (location != NULL) Aborted (core dumped)
Created attachment 335984 [details] [review] file: mark file with error as skipped Files that give an error on renaming shouldn't be added to the undo list, so those should be marked as skipped.
Created attachment 335985 [details] [review] file: mark file with error on batch rename as skipped Files that give an error on renaming shouldn't be added to the undo list, so those should be marked as skipped.
Review of attachment 335985 [details] [review]: indeed, thanks!
Attachment 335985 [details] pushed as 7ff0940 - file: mark file with error on batch rename as skipped