gtkui: let the server determine if dir is [truly] not listable
if the server is running as root (I know it's crazy but it happens),
it can do anything
Servers running on Windows [ftpdmin.exe] may report wrong permissions, at least through WINE
@@ -956,18 +956,11 @@ on_listbox_row_activated_cb (GtkTreeView *tree_view, GtkTreePath *path,
int success = 0;
if (S_ISLNK (tempfle->st_mode) || S_ISDIR (tempfle->st_mode))
- {
- if(tempfle->st_mode & S_IXUSR)
{
directory = gftp_build_path (wdata->request, wdata->request->directory,
tempfle->file, NULL);
success = gftpui_run_chdir (wdata, directory);
g_free (directory);
- }else{
- ftp_log (gftp_logging_error, NULL,
- _("Directory %s is not listable\n"),
- tempfle->file);
- }
}
if (tempfle && !S_ISDIR (tempfle->st_mode) && !success)
