Ticket #3558 (closed defect: invalid)
F5/F6/F7/F8 often doesn't report proper error
Reported by: | egmont | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | mc-core | Version: | 4.8.15 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Try to perform a copy, move, mkdir or delete operation that you do not have permission to.
The reason in the error dialog box is sometimes correct (e.g. "Permission denied", "File exists" etc.), but often is a literal "(null)", or the empty string, or some other garbage (e.g. a previous file name you operated on); followed by the numeric error code.
Looks like some serious memory corruption going on, which can potentially lead to other problems (e.g. crash) as well.
This is on Mac 10.10.5, I'll try on Linux as soon as I can.
Dates back at least to 4.7.5, haven't tried older versions.
Change History
comment:2 Changed 9 years ago by egmont
glib's g_strerror() implementation is buggy, it mangles the string. Even immediately wrapping it in a strdup() doesn't help. So I'm afraid there's nothing we can do here.
Reported upstream: https://bugzilla.gnome.org/show_bug.cgi?id=758194
Works correctly in Linux.