comparison src/uicommon/gftpuicallbacks.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 97fd5eb34be0
children 34a4c6ec453c
comparison
equal deleted inserted replaced
498:76c4e4cd108e 499:39e9945288ea
104 { 104 {
105 fle = g_malloc0 (sizeof (*fle)); 105 fle = g_malloc0 (sizeof (*fle));
106 fle->file = g_strdup (".."); 106 fle->file = g_strdup ("..");
107 fle->user = g_malloc0 (1); 107 fle->user = g_malloc0 (1);
108 fle->group = g_malloc0 (1); 108 fle->group = g_malloc0 (1);
109 fle->attribs = g_malloc0 (1); 109 fle->st_mode |= S_IFDIR;
110 *fle->attribs = '\0';
111 fle->isdir = 1;
112 cdata->files = g_list_prepend (cdata->files, fle); 110 cdata->files = g_list_prepend (cdata->files, fle);
113 } 111 }
114 112
115 if (cdata->files != NULL) 113 if (cdata->files != NULL)
116 { 114 {