change gripes for no maintainer
authorJim Bloom <bloom@ucbvax.Berkeley.EDU>
Wed, 19 Jun 1985 09:33:57 +0000 (01:33 -0800)
committerJim Bloom <bloom@ucbvax.Berkeley.EDU>
Wed, 19 Jun 1985 09:33:57 +0000 (01:33 -0800)
SCCS-vsn: old/dbx/eval.c 5.2

usr/src/old/dbx/eval.c

index 5bb7ce0..c120812 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)eval.c     5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)eval.c     5.2 (Berkeley) %G%";
 #endif not lint
 
 static char rcsid[] = "$Header: eval.c,v 1.5 84/12/26 10:39:08 linton Exp $";
 #endif not lint
 
 static char rcsid[] = "$Header: eval.c,v 1.5 84/12/26 10:39:08 linton Exp $";
@@ -1278,6 +1278,12 @@ Node p;
  * Send a message to the current support person.
  */
 
  * Send a message to the current support person.
  */
 
+ifdef MAINTAINER
+static char maintainer[] = MAINTAINER;
+#else
+static char maintainer[] = "";
+#endif
+
 public gripe()
 {
     typedef Operation();
 public gripe()
 {
     typedef Operation();
@@ -1286,12 +1292,16 @@ public gripe()
     extern int versionNumber;
     char subject[100];
 
     extern int versionNumber;
     char subject[100];
 
+    if (maintainer[0] == '\0') {
+       puts("Gripes not supported at this site.  Sorry.");
+       return;
+    }
     puts("Type control-D to end your message.  Be sure to include");
     puts("your name and the name of the file you are debugging.");
     putchar('\n');
     old = signal(SIGINT, SIG_DFL);
     sprintf(subject, "dbx (version 3.%d) gripe", versionNumber);
     puts("Type control-D to end your message.  Be sure to include");
     puts("your name and the name of the file you are debugging.");
     putchar('\n');
     old = signal(SIGINT, SIG_DFL);
     sprintf(subject, "dbx (version 3.%d) gripe", versionNumber);
-    pid = back("Mail", stdin, stdout, "-s", subject, MAINTAINER, nil);
+    pid = back("Mail", stdin, stdout, "-s", subject, maintainer, nil);
     signal(SIGINT, SIG_IGN);
     pwait(pid, &status);
     signal(SIGINT, old);
     signal(SIGINT, SIG_IGN);
     pwait(pid, &status);
     signal(SIGINT, old);