Mercurial > gftp.yaz
diff lib/local.c @ 294:4747f621b79b
2003-10-25 Brian Masney <masneyb@gftp.org>
* src/gtk/transfer.c src/gtk/gftp-gtk.h src/gtk/view_dialog.c - when
editing a remote file, if the user chooses to upload the changes, make
sure the upload is not sent to the current directory on the remote
server.
* lib/rfc2068.c - set the shown attributes to be -rw------- instead of
----------. The HTTP server doesn't send the attributes over, so I just
have to make something up.
* src/gtk/options_dialog.c - make sure all of the tooltips text is
passed to gettext()
* lib/protocols.c - if the file transfer is to be throttled, only
display the throttle message once.
* lib/local.c (local_get_next_file) - if the file is a symlink, grab
file size and attributes from the file this symlink points to.
author | masneyb |
---|---|
date | Sat, 25 Oct 2003 21:33:46 +0000 |
parents | 4610d25d4abb |
children | cc2eeb30b793 |
line wrap: on
line diff
--- a/lib/local.c Wed Oct 22 20:27:23 2003 +0000 +++ b/lib/local.c Sat Oct 25 21:33:46 2003 +0000 @@ -353,14 +353,14 @@ g_hash_table_insert (lpd->grouphash, GUINT_TO_POINTER (st.st_gid), group); } - fle->attribs = make_text_mode (st.st_mode); + fle->attribs = make_text_mode (fst.st_mode); fle->datetime = st.st_mtime; if ((fle->attribs[0] == 'b' || fle->attribs[0] == 'u' || fle->attribs[0] == 'c')) fle->size = (off_t) st.st_rdev; else - fle->size = st.st_size; + fle->size = fst.st_size; fle->isdir = S_ISDIR (fst.st_mode); fle->islink = S_ISLNK (st.st_mode);