Mercurial > gftp.yaz
changeset 336:e0c22c0d9106
2003-12-10 Brian Masney <masneyb@gftp.org>
* lib/rfc2068.c - set the default file attributes to -rw-r--r-- for
all files.
author | masneyb |
---|---|
date | Sat, 13 Dec 2003 19:26:27 +0000 |
parents | 04e1873660b3 |
children | 5f9d5aee0c1c |
files | ChangeLog lib/rfc2068.c |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Dec 12 17:39:16 2003 +0000 +++ b/ChangeLog Sat Dec 13 19:26:27 2003 +0000 @@ -1,3 +1,7 @@ +2003-12-10 Brian Masney <masneyb@gftp.org> + * lib/rfc2068.c - set the default file attributes to -rw-r--r-- for + all files. + 2003-12-7 Brian Masney <masneyb@gftp.org> * lib/options.h lib/config_file.c - removed scramble_passwords option. Instead, make this the default action all the time. This @@ -1826,7 +1830,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.182 2003/12/10 02:22:55 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.183 2003/12/13 19:26:21 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/lib/rfc2068.c Fri Dec 12 17:39:16 2003 +0000 +++ b/lib/rfc2068.c Sat Dec 13 19:26:27 2003 +0000 @@ -505,13 +505,14 @@ /* Copy file attributes. Just about the only thing we can get is whether it is a directory or not */ - fle->attribs = g_strdup ("-rw-------"); if (*(pos - 1) == '/') { + fle->attribs = g_strdup ("drwxr-xr-x"); *(pos - 1) = '\0'; - *fle->attribs = 'd'; fle->isdir = 1; } + else + fle->attribs = g_strdup ("-rw-r--r--"); /* Copy filename */ if (strchr (stpos, '/') != NULL || strncmp (stpos, "mailto:", 7) == 0 ||