diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2020-11-25 15:40:47 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2020-12-17 21:18:28 +0000 |
commit | 73197b540cc5f0434c409b68ca9e1a514a6ce91b (patch) | |
tree | 77c0340598f2af7e9feab3a729acbe677ca973b9 /usr/src/cmd/ctfconvert/ctfconvert.c | |
parent | dd4422524768709a579a2a93a10c78a88a6b0ecb (diff) | |
download | illumos-gate-73197b540cc5f0434c409b68ca9e1a514a6ce91b.tar.gz |
13336 ctfconvert should be able to unconditionally attempt conversion
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd/ctfconvert/ctfconvert.c')
-rw-r--r-- | usr/src/cmd/ctfconvert/ctfconvert.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/src/cmd/ctfconvert/ctfconvert.c b/usr/src/cmd/ctfconvert/ctfconvert.c index 00f409c124..064e665c26 100644 --- a/usr/src/cmd/ctfconvert/ctfconvert.c +++ b/usr/src/cmd/ctfconvert/ctfconvert.c @@ -80,11 +80,12 @@ ctfconvert_usage(const char *fmt, ...) va_end(ap); } - (void) fprintf(stderr, "Usage: %s [-ikms] [-j nthrs] [-l label | " + (void) fprintf(stderr, "Usage: %s [-fikms] [-j nthrs] [-l label | " "-L labelenv] [-b batchsize]\n" " [-o outfile] input\n" "\n" "\t-b batch process this many dies at a time (default %d)\n" + "\t-f always attempt to convert files\n" "\t-i ignore files not built partially from C sources\n" "\t-j use nthrs threads to perform the merge (default %d)\n" "\t-k keep around original input file on failure\n" @@ -258,7 +259,7 @@ main(int argc, char *argv[]) ctfconvert_progname = basename(argv[0]); - while ((c = getopt(argc, argv, ":b:ij:kl:L:mo:sX")) != -1) { + while ((c = getopt(argc, argv, ":b:fij:kl:L:mo:sX")) != -1) { switch (c) { case 'b': { long argno; @@ -272,6 +273,9 @@ main(int argc, char *argv[]) bsize = (uint_t)argno; break; } + case 'f': + flags |= CTF_FORCE_CONVERSION; + break; case 'i': ignore_non_c = B_TRUE; break; |