How do I *really* debug arla?

Love lha at stacken.kth.se
Mon Sep 13 10:04:59 CEST 1999


sperber at Informatik.Uni-Tuebingen.De (Michael Sperber [Mr. Preprocessor]) writes:

> I followed the instructions, and voila:

A bug in the command-line-parse. Apply the following patch or
don't type the extra /dev/xfs0 at the end.

> I also tried just doing "fs arladebug almost-all", but that seemed to
> have no visible effect on syslog.

fs arladebug on prints debug when arlad started, and it didn't.

Love


Index: getarg.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/lib/roken/getarg.c,v
retrieving revision 1.14
diff -u -w -u -w -r1.14 getarg.c
@@ -428,7 +428,7 @@
 	    if(ret)
 		return ret;
 	    i += j;
-	}else if (style & ARG_SHORTARG) {
+	}else if (style & ARG_SHORTARG && argv[i][0] == '-') {
 	    for(j = 1; argv[i][j]; j++) {
 		for(arg = args; arg->type; arg++) {
 		    char *optarg;





More information about the Arla-drinkers mailing list