diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-03 03:00:10 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-03 03:00:10 -0500 |
| commit | fff0d9587f674e2b1f61ba693ef830862dc1241d (patch) | |
| tree | 20a9d4d1e9fb145f2c2d937a478aa220f16da728 /src/opts.c | |
| parent | 939dab58d23272a68c16c625dbd14ff3f8f6c51b (diff) | |
| download | alftools-fff0d9587f674e2b1f61ba693ef830862dc1241d.tar.gz | |
unalf: Abort on ludicrously large sizes in the header. Add -F to bypass, warn the user this may cause an infinite loop.
Diffstat (limited to 'src/opts.c')
| -rw-r--r-- | src/opts.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,6 @@ #include "unalf.h" -#define OPTIONS "aefklLopqtTvVd:x:" +#define OPTIONS "aefFklLopqtTvVd:x:" /* uncomment to test exclude/include glob lists */ // #define DEBUG_GLOBS @@ -38,6 +38,7 @@ void parse_opts(int argc, char * const *argv) { case 'e': opts.listonly = opts.testonly = 0; break; case 'k': opts.keepdot++; break; case 'f': opts.fixjunk++; opts.testonly = 1; opts.listonly = 0; opts.quiet = 1; break; + case 'F': opts.force++; break; case 'l': opts.listonly++; opts.testonly = 0; break; case 'L': opts.lowercase++; break; case 'o': opts.overwrite++; break; |
