[Thunar-dev] Delete broken link - Error: No such file or directory
Harold Aling
h.aling at home.nl
Tue Feb 14 22:45:04 CET 2006
>> 1: When deleting a broken link, Thunar reports that he can't find the
>> file... Cut/copy/pasting the broken link works fine...
>>
>
> Hm works for me. Thunar uses remove(3). Maybe remove() doesn't handle
> symlinks properly in glibc. Try the following program:
>
> #include <stdio.h>
> int main (int argc, char **argv)
> {
> if (remove (argv[1]) < 0)
> {
> perror ("remove")
> return 1;
> }
> return 0;
> }
>
> Compile with
>
> cc file.c
>
> and run
>
> ./a.out /path/to/broken.link
>
> and tell me if it produces an error.
>
Nope... No error (except for the missing ; on line 7;-)) and the broken
link gets deleted correctly...
-H-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20060214/fb747304/attachment.html>
More information about the Thunar-dev
mailing list