SCCS-vsn: libexec/bugfiler/gethead.c 5.10
-static char sccsid[] = "@(#)gethead.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)gethead.c 5.10 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
+ distf = strdup(_PATH_TMP);
if (!(fd = mkstemp(distf)) || !(dfp = fdopen(fd, "w+")))
error("can't create redistribution file %s.", distf);
/* disappear after last reference is closed */
(void)unlink(distf);
if (!(fd = mkstemp(distf)) || !(dfp = fdopen(fd, "w+")))
error("can't create redistribution file %s.", distf);
/* disappear after last reference is closed */
(void)unlink(distf);
}
if (!freopen(tmpname, "r", stdin))
error("can't read temporary bug file %s.", tmpname);
}
if (!freopen(tmpname, "r", stdin))
error("can't read temporary bug file %s.", tmpname);