comparison lib/protocols.c @ 281:1c7cde8a3a53

2003-10-4 Brian Masney <masneyb@gftp.org> * lib/protocols.c - fix for CRAY directory listings. Some UNIX directory listings with files containing spaces could be misinterpreted. * cvsclean - purge the m4 directory, but save the largefile.m4 file. (from Nathan Robertson <nathanr@nathanr.net>)
author masneyb
date Sat, 04 Oct 2003 14:45:38 +0000
parents 5810b0f97eee
children 265244924868
comparison
equal deleted inserted replaced
280:f8b95f89dfb7 281:1c7cde8a3a53
1098 } 1098 }
1099 else 1099 else
1100 *endpos = tmppos; 1100 *endpos = tmppos;
1101 } 1101 }
1102 1102
1103 return (mktime (&curtime)); 1103 return (ret);
1104 } 1104 }
1105 1105
1106 1106
1107 static void 1107 static void
1108 gftp_parse_vms_attribs (char *dest, char **src) 1108 gftp_parse_vms_attribs (char *dest, char **src)
1275 else 1275 else
1276 fle->user = g_strdup (_("unknown")); 1276 fle->user = g_strdup (_("unknown"));
1277 startpos = goto_next_token (startpos); 1277 startpos = goto_next_token (startpos);
1278 } 1278 }
1279 1279
1280 if (request->server_type != GFTP_DIRTYPE_CRAY) 1280 if (request->server_type == GFTP_DIRTYPE_CRAY)
1281 { 1281 {
1282 /* See if this is a Cray directory listing. It has the following format: 1282 /* See if this is a Cray directory listing. It has the following format:
1283 drwx------ 2 feiliu g913 DK common 4096 Sep 24 2001 wv */ 1283 drwx------ 2 feiliu g913 DK common 4096 Sep 24 2001 wv */
1284 if (cols == 11 && strstr (str, "->") == NULL) 1284 if (cols == 11 && strstr (str, "->") == NULL)
1285 { 1285 {