Index: disk-utils/fsck.cramfs.c =================================================================== --- disk-utils/fsck.cramfs.c +++ disk-utils/fsck.cramfs.c 2009-03-16 23:58:23.000000000 +0100 @@ -66,7 +66,7 @@ struct cramfs_super super; /* just find the cramfs superblock once */ static int opt_verbose = 0; /* 1 = verbose (-v), 2+ = very verbose (-vv) */ -char *extract_dir = NULL; /* extraction directory (-x) */ +char *extract_dir = ""; /* extraction directory (-x) */ /* Exit codes used by fsck-type programs */ #define FSCK_OK 0 /* No errors */ @@ -290,7 +290,8 @@ } printf("%c %04o %s %5d:%-3d %s\n", - type, i->mode & ~S_IFMT, info, i->uid, i->gid, name); + type, i->mode & ~S_IFMT, info, i->uid, i->gid, + !*name && type == 'd' ? "/" : name); } /*