View | Details | Raw Unified | Return to bug 222050
Collapse All | Expand All

(-)usr.sbin/iovctl/iovctl.c (-2 / +6 lines)
Lines 230-246 Link Here
230
		usage();
230
		usage();
231
	}
231
	}
232
232
233
	if (device == NULL && filename == NULL) {
233
	if (device == NULL && filename == NULL  && action != CONFIG) {
234
		warnx("Either the -d or -f flag must be specified");
234
		warnx("Either the -d or -f flag must be specified");
235
		usage();
235
		usage();
236
	}
236
	}
237
237
238
	switch (action) {
238
	switch (action) {
239
	case CONFIG:
239
	case CONFIG:
240
		if (filename == NULL) {
240
		if (device != NULL) {
241
			warnx("-d flag cannot be used with the -C flag");
241
			warnx("-d flag cannot be used with the -C flag");
242
			usage();
242
			usage();
243
		}
243
		}
244
		if (filename == NULL) {
245
			warnx("The -f flag must be specified");
246
			usage();
247
		}
244
		config_action(filename, dryrun);
248
		config_action(filename, dryrun);
245
		break;
249
		break;
246
	case DELETE:
250
	case DELETE:

Return to bug 222050