diff src/gtk/dnd.c @ 499:39e9945288ea

2004-7-13 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/local.c lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c src/gtk/chmod_dialog.c src/gtk/delete_dialog.c src/gtk/dnd.c src/gtk/gftp-gtk.c src/gtk/gtkui_transfer.c src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/view_dialog.c src/text/textui.c src/uicommon/gftpui.c src/uicommon/gftpuicallbacks.c - represent the file attributes as a mode_t variable instead of a character string
author masneyb
date Tue, 13 Jul 2004 20:17:42 +0000
parents 5100b89c44e1
children c6a6e908dbaf
line wrap: on
line diff
--- a/src/gtk/dnd.c	Tue Jul 13 02:44:35 2004 +0000
+++ b/src/gtk/dnd.c	Tue Jul 13 20:17:42 2004 +0000
@@ -42,7 +42,7 @@
   newfle->shown = 1;
   if (url[strlen (url) - 1] == '/') 
     {
-      newfle->isdir = 1;
+      newfle->st_mode |= S_IFDIR;
       url[strlen (url) - 1] = '\0';
     }
 
@@ -192,7 +192,7 @@
 
       /* Note, I am allocating memory for this byte above. Note the extra space
          at the end of the g_strdup_printf() format argument */
-      if (tempfle->isdir)
+      if (S_ISDIR (tempfle->st_mode))
         tempstr[strlen (tempstr) - 1] = '/';
       else
         tempstr[strlen (tempstr) - 1] = '\0';