Hi I was looking at http://savannah.gnu.org/bugs/?20373 and considering how to test if a symlink points to a directory.
Would it be reliable enough to try CWD to it if getting it as a file fails, and set f->type to FT_DIRECTORY if that succeeds? If so, what is the safest way to restore the original PWD? And what should be done on error in this case? The only call to ftp_cwd() is wrapped in code which seems to be there to deal with VMS. Does this need to be done in this case, and if so should this be moved into ftp_cwd() or another function so it can be reused? Any thoughts? Thanks
