diff options
author | Ed Maste <emaste@FreeBSD.org> | 2023-03-31 12:52:22 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-04-21 21:18:24 +0000 |
commit | 5fbe15bc21870dec4042c46c83b2ce3c09fa8a87 (patch) | |
tree | a00116aef8dba12f7be9f9a03a210adfd395c1ce | |
parent | bf5c45448720e20208d3e8f2b563e5234c28159a (diff) | |
download | src-5fbe15bc21870dec4042c46c83b2ce3c09fa8a87.tar.gz src-5fbe15bc21870dec4042c46c83b2ce3c09fa8a87.zip |
makefs: remove unused cd9660 options
Makefs defined "follow-symlinks" and "help" options, but they did
nothing. Remove them.
Obtained from: OpenBSD a8f1645688c2
Sponsored by: The FreeBSD Foundation
(cherry picked from commit c753f49f7006d28786c29dfbb5f838b494e2146f)
-rw-r--r-- | usr.sbin/makefs/cd9660.c | 13 | ||||
-rw-r--r-- | usr.sbin/makefs/cd9660.h | 2 |
2 files changed, 0 insertions, 15 deletions
diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c index 661eefc832da..4d82a8dc93a1 100644 --- a/usr.sbin/makefs/cd9660.c +++ b/usr.sbin/makefs/cd9660.c @@ -196,7 +196,6 @@ cd9660_set_defaults(iso9660_disk *diskStructure) /* Set up defaults in our own structure */ diskStructure->verbose_level = 0; diskStructure->keep_bad_images = 0; - diskStructure->follow_sym_links = 0; diskStructure->isoLevel = 2; diskStructure->rock_ridge_enabled = 0; @@ -266,10 +265,6 @@ cd9660_prep_opts(fsinfo_t *fsopts) OPT_NUM('v', "verbose", verbose_level, 0, 2, "Turns on verbose output"), - OPT_BOOL('h', "help", displayHelp, - "Show help message"), - OPT_BOOL('S', "follow-symlinks", follow_sym_links, - "Resolve symlinks in pathnames"), OPT_BOOL('R', "rockridge", rock_ridge_enabled, "Enable Rock-Ridge extensions"), OPT_BOOL('C', "chrp-boot", chrp_boot, @@ -491,14 +486,6 @@ cd9660_makefs(const char *image, const char *dir, fsnode *root, assert(dir != NULL); assert(root != NULL); - if (diskStructure->displayHelp) { - /* - * Display help here - probably want to put it in - * a separate function - */ - return; - } - if (diskStructure->verbose_level > 0) printf("%s: image %s directory %s root %p\n", __func__, image, dir, root); diff --git a/usr.sbin/makefs/cd9660.h b/usr.sbin/makefs/cd9660.h index fae2d2077c00..f271e0425517 100644 --- a/usr.sbin/makefs/cd9660.h +++ b/usr.sbin/makefs/cd9660.h @@ -238,9 +238,7 @@ typedef struct _iso9660_disk { int include_padding_areas; - int follow_sym_links; int verbose_level; - int displayHelp; int keep_bad_images; /* SUSP options and variables */ |