Commit ea06b765 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Bad check for . and .. fixed.

Detail:
  Any filename starting with . was being hidden.
Admin:
  Tested.  Confirmed . and .. are not there but files such as .rhosts
    are visible.

Version 2.01. Tagged as 'LanManFS-2_01'
parent d49e6981
/* (2.00)
/* (2.01)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 2.00
#define Module_MajorVersion_CMHG 2.01
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 16 Feb 1999
#define Module_Date_CMHG 18 Feb 1999
#define Module_MajorVersion "2.00"
#define Module_Version 200
#define Module_MajorVersion "2.01"
#define Module_Version 201
#define Module_MinorVersion ""
#define Module_Date "16 Feb 1999"
#define Module_Date "18 Feb 1999"
......@@ -168,12 +168,23 @@ static err_t Dir_CallbackFn ( BYTE *entry, int format, void *pw )
#ifdef LONGNAMES
/* Insert check for . and .. here */
if (format == 1) {
if (entry[23] == '.') return OK;
if (entry[23] == '.') {
if (entry[22] == 1 || entry[24] == '\0') {
return OK;
}
if (entry[24] == '.' && (entry[22] == 2 || entry[25] == '\0')) {
return OK;
}
}
}
else
#endif
if ( entry[9] == '.' ) /* Ignore '.' and '..' directories */
return OK;
if ( entry[9] == '.' ) {
/* Ignore '.' and '..' directories */
if (entry[10] == '.' && entry[10] == '\0' || entry[11] == '\0') {
return OK;
}
}
// debug3 ("Entry: current %d req %d count %d\n",
// RD_CurOffset, RD_ReqOffset, RD_ReqCount );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment