From cb3a32254b64fefbd6539e81ae77758ab8ce6b09 Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Fri, 25 Aug 2023 17:46:25 -0700 Subject: [PATCH] Add 'fsck' and 'more' back onto 360k distribution --- elkscmd/Applications | 4 ++-- elkscmd/disk_utils/fsck.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/elkscmd/Applications b/elkscmd/Applications index 750f549c0..bdc9794da 100644 --- a/elkscmd/Applications +++ b/elkscmd/Applications @@ -70,7 +70,7 @@ file_utils/md5sum :fileutil file_utils/mkdir :fileutil :360k file_utils/mknod :fileutil :360k #file_utils/mkfifo :fileutil :1200k :1440k -file_utils/more :fileutil :720k :128k +file_utils/more :fileutil :360k :128k file_utils/mv :fileutil :360k file_utils/ln :fileutil :720k file_utils/ls :fileutil :360k :128k @@ -157,7 +157,7 @@ minix3/cal :be-minix3 :1200k :1440k minix3/diff :be-minix3 :720k minix3/find :be-minix3 :720k minix3/mail :minix3 :other -disk_utils/fsck :diskutil :1200k :1440k +disk_utils/fsck :diskutil :360k :1200k :1440k disk_utils/mkfs :diskutil :360k disk_utils/mkfat :diskutil :360k disk_utils/partype :diskutil :1200k :1440k diff --git a/elkscmd/disk_utils/fsck.c b/elkscmd/disk_utils/fsck.c index f747f95bf..d796fc6f4 100644 --- a/elkscmd/disk_utils/fsck.c +++ b/elkscmd/disk_utils/fsck.c @@ -242,7 +242,8 @@ void inode_dump(struct minix_inode * ptr) printf(" %5ld %d/%d Z", ptr->i_size, ptr->i_uid, ptr->i_gid); for (i = 0; i < 9; i++) { if (ptr->i_zone[i] || verbose > 2) - printf(" %u", ptr->i_zone[i]); + printf(S_ISBLK(ptr->i_mode) || S_ISCHR(ptr->i_mode)? " 0x%04x": " %u", + ptr->i_zone[i]); else break; } }