directory listing lock-up when following simlink to another filesystem

Advertisement

deepsky
Guest

directory listing lock-up when following simlink to another filesystem

WinSCP locks up when I try to browse a certain directory on the remote server (a Linux machine). It happens just with that one, so I suppose it is a bug.
This directory it is actually a link to a directory in another filesystem:

lrwxrwxrwx 1 giov users 28 May 29 2002 web -> /usr/local/httpd/htdocs/giov

Of course in normal conditions I have permissions to browse this directory, which is owned by me.
But if I try to enter into this directory with winscp, the program locks up and I have to ctrl-alt-del to terminate it.
Looks like a bug...

Reply with quote

Advertisement

Guest

Re: directory listing lock-up when following simlink to another filesystem

Got the problem. In the directory being read in the remote filesystem, there is a symlink of this kind:

lrwxrwxrwx 1 giov users 4 Jan 27 2002 exec -> exec

which obviously something made by mistake. But as soon as Winscp finds it, it immediately tries to follow it (why?), which of course is a neverending affair. From the winscp log:

. Listing file "exec".
> ls -lad "exec" ; echo "WinSCP: this is end-of-file:$?"
< lrwxrwxrwx 1 giov users 4 Jan 27 2002 exec -> exec
< WinSCP: this is end-of-file:0
(repeated many and many times).

It is true that this simlink is recursive, but heck, it is just a symlink, so it is legal in unix, albeit a bit stupid. Why winscp tries to follow it? Nobody told to open that directory... Note that I was trying to read the directory where the link IS, not trying to open the link itself.

Reply with quote

martin
Site Admin
martin avatar

Re: directory listing lock-up when following simlink to another filesystem

WinSCP follows link to detect whether it points to file or directory. Of course it is a bug to follow recursive symlink, I'll fix it sometimes.

Reply with quote

dharmdatt.sharma
Guest

WinScp lock the directory (version 5.8.4.0)

Whenever my application (which is using winscp) is stopped when winscp is in action, the folder where download is happening is locked until system is rebooted. What could be the problem? Please note that i am having "using" block wherever session is used.

Reply with quote

Advertisement

Guest

Re: WinScp lock the directory (version 5.8.4.0)

dharmdatt.sharma wrote:

Whenever my application (which is using winscp) is stopped when winscp is in action, the folder where download is happening is locked until system is rebooted. What could be the problem? Please note that i am having "using" block wherever session is used.

File Version is 1.3.3.6736
Product Version is 5.8.4.0

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: WinScp lock the directory (version 5.8.4.0)

dharmdatt.sharma wrote:

Whenever my application (which is using winscp) is stopped when winscp is in action, the folder where download is happening is locked until system is rebooted. What could be the problem? Please note that i am having "using" block wherever session is used.
This should not be happening. What is your version of Windows? How do you "stop" the application? Is winscp.exe process left behind, when you "stop" the application.

Reply with quote

dharmdatt.sharma
Guest

WinScp lock the directory (version 5.8.4.0)

I am using Windows 7 and application is a windows service. If the service is stopped when download/upload is in-progress, the folder is locked and winscp.exe remains in memory (i can see it in Task Manager). Until I kill that process manually, the folder is unusable.

Reply with quote

Advertisement

You can post new topics in this forum