vfs.c "Could not parse"



220 xxxxxxx FTP server (SunOS 5.7) ready.

This FTP server outputs the file dates with Frech format:

150 ASCII data connection for /bin/ls (139.54.66.187,1071) (0 bytes).
total 15740
drwxr-xr-x   6 root     other        512 sep  26 16:52 .
drwxr-xr-x   3 root     other        512 sep  25 14:43 ..
drwxr-xr-x  13 root     other        512 sep  26 15:23 apache
drwxrwsr-x  28 root     bin         1024 fév   8  2001 ghost
drwxr-xr-x   5 999      999          512 nov  27  2000 perl560
drwxr-xr-x   9 999      999          512 nov   3  2000 tomcat
-rw-r--r--   1 root     other    8042496 sep  26 16:51 TOMCAT.03.01.sol.tar
226 ASCII Transfer complete.

The table in
static int
is_month (char *str, struct tm *tim)
{
    static char *month = "JanFebMarAprMayJunJulAugSepOctNovDec";

is obviously an English table, and is good for most servers.
what can we do ?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]