Tracker: Bugs

5 libfm0: Removable directory not removed if no x flag - ID: 3409834
Last Update: Comment added ( lstranger )

Originally posted as:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639982



Package: libfm0
Version: 0.1.14-2
Severity: normal

Test case:
drwxr-xr-x 3 wodny wodny 4096 Sep 1 12:39 .
drwxr-xr-x 5 wodny wodny 4096 Sep 1 12:39 ..
drwx------ 2 root root 4096 Sep 1 12:39 testdir

Testdir is empty.

Rmdir testdir will succeed.
Gvfs-rm will succeed.
Removing testdir through pcmanfm will fail.


Some debug:
$ gdb pcmanfm

[...]

(gdb) b _fm_file_ops_job_delete_file

[...]

Breakpoint 1, _fm_file_ops_job_delete_file (job=0x81b6880, gf=0xb2a45520,
inf=0x0) at job/fm-file-ops-job-delete.c:33
33 job/fm-file-ops-job-delete.c: No such file or directory.
in job/fm-file-ops-job-delete.c

[...]

84 if(is_dir)
(gdb) n
88 if(!g_file_is_native(gf))
(gdb) n
107 GFileMonitor* old_mon = fjob->src_folder_mon;
(gdb) n
108 GFileEnumerator* enu = g_file_enumerate_children(gf,
query,
(gdb) n
111 if(!enu)
(gdb) n
108 GFileEnumerator* enu = g_file_enumerate_children(gf,
query,
(gdb) n
111 if(!enu)
(gdb) n
113 FmJobErrorAction act = fm_job_emit_error(job, err,
FM_JOB_ERROR_MODERATE);
(gdb) n
114 g_error_free(err);
(gdb) n
113 FmJobErrorAction act = fm_job_emit_error(job, err,
FM_JOB_ERROR_MODERATE);
(gdb) n
** (pcmanfm:12064): DEBUG: FmJob error: Permission denied
114 g_error_free(err);
(gdb) n
116 return FALSE;
(gdb) n
202 }


Marcin Szewczyk ( wodny ) - 2011-09-15 03:38:50 PDT

5

Closed

Fixed

Lonely Stranger

libfm

1.0.1

Public


Comments ( 6 )

Date: 2012-08-12 17:25:50 PDT
Sender: lstranger

We hope this issue is completely fixed in the Git repository recently.
Check it out when it's possible for you and if the bug still exists then
reopen the report, please.
Thank you very much.


Date: 2012-08-10 10:19:43 PDT
Sender: lstranger

Don't worry. I've fixed it locally so just wait for 1.0.1-beta. :)


Date: 2012-08-10 06:27:55 PDT
Sender: wodny

I don't think so. pcmanx has already written about the reason but I assume
it just has to wait for being fixed.


Date: 2012-08-10 06:24:45 PDT
Sender: mckaygerhard

maybe this are related with #3556049, here:
https://sourceforge.net/tracker/?func=detail&atid=801864&aid=3556049&group_id=156956
when i manage files, the file operation dont refresh directory views


Date: 2012-05-21 03:44:48 PDT
Sender: pcmanxProject AdminAccepting Donations

This is because pcmanfm tries to recursively delete the folder.
Fixing this requires redesign of the file operation job system.
Let's do it later.


Date: 2011-11-18 10:45:58 PST
Sender: pcmanxProject AdminAccepting Donations

I'll try to fix this before 1.0 release, but there is no guarantee since
till now I'm not able to reproduce the bug here.



Attached File

No Files Currently Attached

Changes ( 15 )

Field Old Value Date By
resolution_id Accepted 2012-08-12 17:25:50 PDT lstranger
close_date - 2012-08-12 17:25:50 PDT lstranger
allow_comments 1 2012-08-12 17:25:50 PDT lstranger
status_id Open 2012-08-12 17:25:50 PDT lstranger
artifact_group_id 1.2 2012-08-10 10:19:43 PDT lstranger
assigned_to pcmanx 2012-08-10 10:19:43 PDT lstranger
resolution_id None 2012-08-10 10:19:43 PDT lstranger
artifact_group_id 2.0 2012-07-16 11:48:12 PDT lstranger
priority 3 2012-05-26 13:18:30 PDT lstranger
priority 6 2012-05-21 03:44:48 PDT pcmanx
artifact_group_id 1.0 2012-05-21 03:44:48 PDT pcmanx
category_id None 2011-11-18 10:45:58 PST pcmanx
assigned_to nobody 2011-11-18 10:45:58 PST pcmanx
priority 5 2011-11-18 10:45:58 PST pcmanx
artifact_group_id None 2011-11-18 10:45:58 PST pcmanx