From: Theodore Ts'o Date: Mon, 26 May 2025 20:25:15 +0000 (-0400) Subject: debugfs: return after printing the usage message in the e2freefrag command X-Git-Tag: v1.47.3-rc1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c675a67c5684252e3a228c824b0accb9f3ab5d7;p=thirdparty%2Fe2fsprogs.git debugfs: return after printing the usage message in the e2freefrag command Signed-off-by: Theodore Ts'o --- diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c index 437f011f..7e095bec 100644 --- a/misc/e2freefrag.c +++ b/misc/e2freefrag.c @@ -397,6 +397,9 @@ int main(int argc, char *argv[]) fprintf(stderr, "%s: bad chunk size '%s'\n", progname, optarg); usage(progname); +#ifdef DEBUFS + return; +#endif } if (chunk_info.chunkbytes & (chunk_info.chunkbytes - 1)) { @@ -409,6 +412,9 @@ int main(int argc, char *argv[]) case 'h': default: usage(progname); +#ifdef DEBUGFS + return; +#endif break; } } @@ -417,6 +423,9 @@ int main(int argc, char *argv[]) if (optind == argc) { fprintf(stderr, "%s: missing device name.\n", progname); usage(progname); +#ifdef DEBUGFS + return; +#endif } device_name = argv[optind];