/[axel]/branches/2.x/ftp.c
ViewVC logotype

Diff of /branches/2.x/ftp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by appaji-guest, Fri Jan 11 11:57:58 2008 UTC revision 8 by appaji-guest, Wed Jan 16 07:30:52 2008 UTC
# Line 87  int ftp_cwd( ftp_t *conn, char *cwd ) Line 87  int ftp_cwd( ftp_t *conn, char *cwd )
87    
88          ftp_command( conn, "CWD %s", cwd );          ftp_command( conn, "CWD %s", cwd );
89          if( ftp_wait( conn ) / 100 != 2 )          if( ftp_wait( conn ) / 100 != 2 )
90            {
91                    fprintf( stderr, _("Can't change directory to %s\n"), cwd );
92                  return( 0 );                  return( 0 );
93            }
94    
95          strncpy( conn->cwd, cwd, MAX_STRING );          strncpy( conn->cwd, cwd, MAX_STRING );
96    

Legend:
Removed from v.2  
changed lines
  Added in v.8

  ViewVC Help
Powered by ViewVC 1.1.5