From 7f81c35c6f874e61e5e5d7ba0ee766937cf2a827 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 16 Sep 2009 17:05:30 +0200 Subject: [PATCH] Hook mount_hpfs into the build. It builds and even works. However, comment out all code related to the (undocumented) -W option. It would be painful to convert it to libiconv and the current code depends on /usr/libdata/msdosfs which is gone. Tested-with-OS/2: polachok --- sbin/Makefile | 1 + sbin/mount_hpfs/mount_hpfs.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/sbin/Makefile b/sbin/Makefile index 0086450377..ba29172094 100644 --- a/sbin/Makefile +++ b/sbin/Makefile @@ -50,6 +50,7 @@ SUBDIR= adjkerntz \ mount_devfs \ mount_ext2fs \ mount_hammer \ + mount_hpfs \ mount_msdos \ mount_nfs \ mount_ntfs \ diff --git a/sbin/mount_hpfs/mount_hpfs.c b/sbin/mount_hpfs/mount_hpfs.c index 09bda3c10d..e4da55dd56 100644 --- a/sbin/mount_hpfs/mount_hpfs.c +++ b/sbin/mount_hpfs/mount_hpfs.c @@ -58,7 +58,9 @@ static gid_t a_gid(char *); static uid_t a_uid(char *); static mode_t a_mask(char *); static void usage(void) __dead2; +#if 0 static void load_u2wtable(struct hpfs_args *, char *); +#endif int main(int argc, char **argv) @@ -93,10 +95,12 @@ main(int argc, char **argv) case 'o': getmntopts(optarg, mopts, &mntflags, 0); break; +#if 0 case 'W': load_u2wtable(&args, optarg); args.flags |= HPFSMNT_TABLES; break; +#endif case '?': default: usage(); @@ -220,6 +224,7 @@ usage(void) exit(EX_USAGE); } +#if 0 void load_u2wtable (struct hpfs_args *pargs, char *name) { @@ -254,3 +259,4 @@ load_u2wtable (struct hpfs_args *pargs, char *name) } fclose(f); } +#endif -- 2.11.4.GIT