Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mimsy!chris From: chris@mimsy.UUCP Newsgroups: comp.bugs.4bsd Subject: dbx makedate returns random value to environment Message-ID: <8271@mimsy.UUCP> Date: Sun, 30-Aug-87 02:27:59 EDT Article-I.D.: mimsy.8271 Posted: Sun Aug 30 02:27:59 1987 Date-Received: Sun, 30-Aug-87 18:38:42 EDT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 42 Index: ucb/dbx/mkdate.c 4.3BSD Fix Description: mkdate does not include an exit() or return in main, so it exits with whatever is in r0. Repeat-by: Install an ANSI/SysV conformant printf() that returns the number of characters printed, recompile mkdate, and attempt to recompile dbx. Fix: RCS file: RCS/mkdate.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c2 -r1.1 -r1.2 *** /tmp/,RCSt1006741 Sun Aug 30 00:03:16 1987 --- /tmp/,RCSt2006741 Sun Aug 30 00:03:18 1987 *************** *** 9,13 **** #endif not lint ! static char rcsid[] = "$Header: mkdate.c,v 1.1 87/08/30 00:02:28 chris Exp $"; #include --- 9,13 ---- #endif not lint ! static char rcsid[] = "$Header: mkdate.c,v 1.2 87/08/30 00:02:54 chris Exp $"; #include *************** *** 30,33 **** --- 30,34 ---- printf("\";\n"); DoVersionNumber(); + exit(0); } -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: seismo!mimsy!chris