diff options
-rw-r--r-- | clients/zwrite/zwrite.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c index 913152f..cd656ec 100644 --- a/clients/zwrite/zwrite.c +++ b/clients/zwrite/zwrite.c @@ -154,9 +154,12 @@ main(argc, argv) } if (!nrecips && !(strcmp(class, DEFAULT_CLASS) || - strcmp(inst, DEFAULT_INSTANCE))) { + (strcmp(inst, DEFAULT_INSTANCE) && + strcmp(inst, URGENT_INSTANCE)))) { + /* must specify recipient if using default class and + (default instance or urgent instance) */ fprintf(stderr, "No recipients specified.\n"); - exit (1); + usage(whoami); } if (!signature) { @@ -376,7 +379,10 @@ usage(s) printf("Usage: %s [-a] [-o] [-d] [-v] [-q] [-n] [-t] [-u]\n\ \t[-c class] [-i inst] [-f fsname] [user ...] [-m message]\n", s); printf("\t-f and -c are mutually exclusive\n\ -\t-f and -i are mutually exclusive\n"); +\t-f and -i are mutually exclusive\n\ +\trecipients must be specified unless -c or -f specifies a class\n\ +\tother than the default class or -i or -f specifies an instance\n\ +\tother than the default or urgent instance\n"); exit(1); } |