diff options
author | 2002-07-11 23:32:11 +0000 | |
---|---|---|
committer | 2002-07-11 23:32:11 +0000 | |
commit | 0f0b68e3637451e5920be85676a2b797eff65ba3 (patch) | |
tree | 8ff68a6be5b6118b47fa8d789db3aa25e31b6a98 /clients/zwrite/zwrite.c | |
parent | 55146dda74723763d48ae3e01aad21a0498bd3e9 (diff) |
This commit was generated by cvs2svn to compensate for changes in r127,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'clients/zwrite/zwrite.c')
-rw-r--r-- | clients/zwrite/zwrite.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c index 5edc779..ebd4a41 100644 --- a/clients/zwrite/zwrite.c +++ b/clients/zwrite/zwrite.c @@ -29,7 +29,7 @@ static const char rcsid_zwrite_c[] = "$Id$"; #define MAXRECIPS 100 int nrecips, msgarg, verbose, quiet, nodot, cc; -char *whoami, *inst, *class, *opcode, *realm, *recips[MAXRECIPS]; +char *whoami, *inst, *class, *opcode, *rhs, *galaxy, *recips[MAXRECIPS]; Z_AuthProc auth; void un_tabify(); @@ -174,7 +174,13 @@ main(argc, argv) if (arg == argc-1) usage(whoami); arg++; - realm = argv[arg]; + rhs = argv[arg]; + break; + case 'G': + if (arg == argc-1) + usage(whoami); + arg++; + galaxy = argv[arg]; break; case 'C': cc = 1; @@ -224,6 +230,7 @@ main(argc, argv) notice.z_sender = 0; notice.z_message_len = 0; notice.z_recipient = ""; + notice.z_dest_galaxy = galaxy; if (format) notice.z_default_format = format; else if (filsys == 1) @@ -343,15 +350,15 @@ send_off(notice, real) int real; { int i, success, retval; - char bfr[BUFSIZ], realm_recip[BUFSIZ], dest[3 * BUFSIZ], *cp; + char bfr[BUFSIZ], rhs_recip[BUFSIZ], dest[3 * BUFSIZ], *cp; ZNotice_t retnotice; success = 0; for (i=0;i<nrecips || !nrecips;i++) { - if (realm) { - sprintf(realm_recip, "%s@%s", (nrecips) ? recips[i] : "", realm); - notice->z_recipient = realm_recip; + if (rhs) { + sprintf(rhs_recip, "%s@%s", (nrecips) ? recips[i] : "", rhs); + notice->z_recipient = rhs_recip; } else { notice->z_recipient = (nrecips) ? recips[i] : ""; } @@ -452,8 +459,9 @@ usage(s) { fprintf(stderr, "Usage: %s [-a] [-o] [-d] [-v] [-q] [-n] [-t] [-u] [-l]\n\ -\t[-c class] [-i inst] [-O opcode] [-f fsname] [-s signature] [-C]\n\ -\t[user ...] [-F format] [-r realm] [-m message]\n", s); +\t[-c class] [-i inst] [-O opcode] [-f fsname] [-s signature] \n\ +\t[-G galaxy] [-C]\n\ +\t[user ...] [-F format] [-r rhs] [-m message]\n", s); fprintf(stderr,"\t-f and -c are mutually exclusive\n\ \t-f and -i are mutually exclusive\n\ \trecipients must be specified unless -c or -f specifies a class\n\ |