*** ftpd.c Sun Jun 6 15:20:21 1999 --- ftpd_patched.c Sun Jun 6 15:15:03 1999 *************** *** 1245,1251 **** /* append the dir part with a leading / unless at root */ if( !(mapped_path[0] == '/' && mapped_path[1] == '\0') ) strcat( mapped_path, "/" ); ! strcat( mapped_path, dir ); } int --- 1245,1254 ---- /* append the dir part with a leading / unless at root */ if( !(mapped_path[0] == '/' && mapped_path[1] == '\0') ) strcat( mapped_path, "/" ); ! if ( strlen(mapped_path) + strlen (dir) < 4095 ) ! strcat( mapped_path, dir ); ! else ! syslog(LOG_ERR, "FTP mapped_path attack "); } int