[stgt] [PATCH 07/15] Fix "tgtadm --debug" support

Arne Redlich arne.redlich at googlemail.com
Tue Jun 9 18:22:21 CEST 2009


Signed-off-by: Arne Redlich <arne.redlich at googlemail.com>
---
 usr/tgtadm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/tgtadm.c b/usr/tgtadm.c
index 2002baa..671af31 100644
--- a/usr/tgtadm.c
+++ b/usr/tgtadm.c
@@ -407,7 +407,7 @@ static int verify_mode_params(int argc, char **argv, char *allowed)
 
 	while ((ch = getopt_long(argc, argv, short_options,
 				 long_options, &longindex)) >= 0) {
-		if (!strchr(allowed, ch)) {
+		if (!strchr(allowed, ch) && !strchr("d", ch)) {
 			ret = ch;
 			break;
 		}
-- 
1.6.0.4



--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list