--- /n/sources/plan9/sys/src/cmd/replica/applylog.c Sat May 21 11:00:08 2011 +++ /sys/src/cmd/replica/applylog.c Tue Jun 23 00:00:00 2026 @@ -21,6 +21,8 @@ int verbose; char **match; int nmatch; +char **xmatch; +int nxmatch; int tempspool = 1; int safeinstall = 1; char *lroot; @@ -145,7 +147,7 @@ void usage(void) { - fprint(2, "usage: replica/applylog [-cnSstuv] [-T timefile] clientdb clientroot serverroot [path ...]\n"); + fprint(2, "usage: replica/applylog [-cnSstuv] [-T timefile] [-x path] clientdb clientroot serverroot [path ...]\n"); exits("usage"); } @@ -216,6 +218,11 @@ case 'v': verbose++; break; + case 'x': + if(nxmatch%16 == 0) + xmatch = erealloc(xmatch, (nxmatch+16)*sizeof xmatch[0]); + xmatch[nxmatch++] = EARGF(usage()); + break; default: usage(); }ARGEND @@ -238,6 +245,9 @@ for(i=0; i