=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/main.c,v retrieving revision 1.37 retrieving revision 1.38 diff -c -r1.37 -r1.38 *** src/usr.bin/make/main.c 2000/06/23 16:39:45 1.37 --- src/usr.bin/make/main.c 2000/07/01 00:21:22 1.38 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.37 2000/06/23 16:39:45 espie Exp $ */ /* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.38 2000/07/01 00:21:22 espie Exp $ */ /* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */ /* *************** *** 49,55 **** #if 0 static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #else ! static char rcsid[] = "$OpenBSD: main.c,v 1.37 2000/06/23 16:39:45 espie Exp $"; #endif #endif /* not lint */ --- 49,55 ---- #if 0 static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #else ! static char rcsid[] = "$OpenBSD: main.c,v 1.38 2000/07/01 00:21:22 espie Exp $"; #endif #endif /* not lint */ *************** *** 886,892 **** if (curdir != objdir && *fname != '/') { (void)sprintf(path, "%s/%s", curdir, fname); if ((stream = fopen(path, "r")) != NULL) { ! fname = path; goto found; } } --- 886,892 ---- if (curdir != objdir && *fname != '/') { (void)sprintf(path, "%s/%s", curdir, fname); if ((stream = fopen(path, "r")) != NULL) { ! fname = estrdup(path); goto found; } }