Mercurial > gftp.yaz
diff lib/local.c @ 91:8c37d73d3f1f
2003-1-21 Brian Masney <masneyb@gftp.org>
* lib/gftp.h - added server type defines. Added server_type field to
gftp_request
* lib/local.c - use S_ISDIR and S_ISLINK macros
* lib/protocols.c - (gftp_parse_ls*) - use hints from server_type for
parsing directory listing
* lib/rfc959.c - added function rfc959_syst. Call this on startup
* lib/protocols.c lib/rfc959.c lib/sshv2.c - pass request structure
to gftp_parse_ls
* lib/sshv2.c - set server_type to be GFTP_TYPE_UNIX
author | masneyb |
---|---|
date | Tue, 21 Jan 2003 23:46:03 +0000 |
parents | 6df043359b41 |
children | 76e2b58a9440 |
line wrap: on
line diff
--- a/lib/local.c Tue Jan 21 05:50:53 2003 +0000 +++ b/lib/local.c Tue Jan 21 23:46:03 2003 +0000 @@ -373,8 +373,8 @@ else fle->size = st.st_size; - fle->isdir = st.st_mode & S_IFDIR; - fle->islink = st.st_mode & S_IFLNK; + fle->isdir = S_ISDIR (st.st_mode); + fle->islink = S_ISLNK (st.st_mode); fle->isexe = (st.st_mode & S_IXUSR) || (st.st_mode & S_IXGRP) || (st.st_mode & S_IXOTH);