+ FILE *df = NULL; /* The command file. */
+ int delfile = 0; /* A match was found, so do a deletion. */
+ char line[256]; /* Command line in command file. */
+
+ if (strcmp(arg, dfname) == 0)
+ delfile = 1; /* arg == 'dfa12345'. */
+ else if (strcmp(arg, dfname+3) == 0)
+ delfile = 1; /* arg == '12345' (skip 'dfa'). */
+ else { /* No match; look inside on command lines. */
+ if ((df = fopen(dfname, "r")) == NULL)
+ return(0);
+ while (!delfile && getline(df, line)) {
+ switch (line[0]) {
+ case 'L':
+ /* Check owner name. */
+ if (strcmp(arg, line+1) == 0)
+ delfile = 1;
+ break;
+
+ case 'C':
+ case 'V':
+ case 'F':
+ case 'G':
+ case 'P':
+ case 'T':
+ /* Check command line arg. */
+ if (strcmp (basename(arg), basename(line)) == 0)
+ delfile = 1;
+ break;
+ }
+ }
+ }