tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Betteridge <n.betteri...@syntactics.com>
Subject Re: Service C code and security manager problem
Date Mon, 10 Sep 2001 14:00:21 GMT
I just tried this and I think that it might be OK (in arguments.c) ... 


        } else if (strstr(argv[x],"-verbose")==argv[x]) {
            args->opts[args->onum++]=strdup(argv[x]);

/*        } else if (strcmp(argv[x],"-D")==0) {
            log_error("Parameter -D must be followed by
<name>=<value>");
*/            return(NULL);

        } else if (strstr(argv[x],"-D")==argv[x]) {
            temp=strchr(argv[x],'=');
/*            if (temp==NULL) {
                log_error("Parameter -D must contain one '='
character");
                return(NULL);
            }
*/            if (temp==argv[x]+2) {
                log_error("A property name must be specified before
'='");
                return(NULL);
            }
            args->opts[args->onum++]=strdup(argv[x]);



... It compiles OK but is not an elegant solution!

Mime
View raw message