Changeset View
Changeset View
Standalone View
Standalone View
sbin/fsck_msdosfs/dir.c
Show First 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | if (ask(1, "Drop superfluous clusters")) { | ||||
fat[dir->head].length = len; | fat[dir->head].length = len; | ||||
return FSFATMOD; | return FSFATMOD; | ||||
} else | } else | ||||
return FSERROR; | return FSERROR; | ||||
} | } | ||||
return FSOK; | return FSOK; | ||||
} | } | ||||
static const u_char dot_name[] = { | static const u_char dot_name[11] = ". "; | ||||
'.', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; | static const u_char dotdot_name[11] = ".. "; | ||||
static const u_char dotdot_name[] = { | |||||
'.', '.',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; | |||||
/* | /* | ||||
* Basic sanity check if the subdirectory have good '.' and '..' entries, | * Basic sanity check if the subdirectory have good '.' and '..' entries, | ||||
* and they are directory entries. Further sanity checks are performed | * and they are directory entries. Further sanity checks are performed | ||||
* when we traverse into it. | * when we traverse into it. | ||||
*/ | */ | ||||
static int | static int | ||||
check_subdirectory(int f, struct bootblock *boot, struct dosDirEntry *dir) | check_subdirectory(int f, struct bootblock *boot, struct dosDirEntry *dir) | ||||
▲ Show 20 Lines • Show All 666 Lines • Show Last 20 Lines |