Hi.

I just identified my problem with symlinks on ftp protocol.
This code in ftp.c is most likely causing the problem:
                        case 'l':
                                ch = strstr (fname, " -> ");
                                if (!ch)
                                    break;
                                ch +=4;
                                if (ch[0] == '.'){
                                    ^^^^^^^^^^^^
                                        len = len_h+len_p+strlen(ch);
                                        udm_snprintf(buf_out+cur_len, len+1, "<a 
href=\"ftp://%s%s%s/\"></a>",
                                                    connp->hostname, path, ch);
                                }else{
                                        len = len_h+strlen(ch);
                                        udm_snprintf(buf_out+cur_len, len+1, "<a 
href=\"ftp://%s%s/\"></a>",
                                                    connp->hostname, ch);
                                }

...

What is the reason for checking for links to /^\./ files?
On our ftp, we use links to files starting with a . to avoid listing
the target paths in a normal ls.

Here is an example listing:
lrwxrwxrwx   1 root     0              51 Oct 13 15:26 solaris -> 
.mirror-sites/ftp.tuwien.ac.at/sun/solaris/packages/
drwxr-xr-x   2 705      1000         4096 Jun 22 14:15 ssl/
drwxr-xr-x   2 705      1000         4096 Nov  1 10:28 suse-linux/
lrwxrwxrwx   1 root     0              40 Oct 13 15:26 tex -> 
.mirror-sites/ftp.gwdg.de/pub/misc2/ctan/
drwxr-xr-x   3 705      1000         4096 Nov  6 23:02 windows/


Does anyone understand why this check is done. And what
happens when it finds a link with a target of ^\..*

Regards,
      Mario Lang

Technical University Graz           mailto:[EMAIL PROTECTED]
Department Computing Services       http://www.cis.tu-graz.ac.at/zid/lang/
Phone: +43 (0) 316 / 873 - 8508       ICQ: 69372257

UFOs are for real: the Air Force doesn't exist.
______________
If you want to unsubscribe send "unsubscribe udmsearch"
to [EMAIL PROTECTED]

Reply via email to