file reorg, pathnames.h, paths.h
[unix-history] / usr / src / libexec / bugfiler / gethead.c
index e7658eb..49b291a 100644 (file)
@@ -3,20 +3,26 @@
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at Berkeley. The name of the University
- * may not be used to endorse or promote products derived from this
- * software without specific prior written permission. This software
- * is provided ``as is'' without express or implied warranty.
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)gethead.c  5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)gethead.c  5.7 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <bug.h>
 #include <sys/stat.h>
 #include <stdio.h>
 #endif /* not lint */
 
 #include <bug.h>
 #include <sys/stat.h>
 #include <stdio.h>
+#include "pathnames.h"
 
 static int     chk1(), pbuf();
 
 
 static int     chk1(), pbuf();
 
@@ -53,7 +59,7 @@ gethead(redist)
                int     fd;
                char    *distf;
 
                int     fd;
                char    *distf;
 
-               distf = "/tmp/BUG_XXXXXX";
+               distf = _PATH_TMP;
                if (!(fd = mkstemp(distf)) || !(dfp = fdopen(fd, "w+")))
                        error("can't create redistribution file %s.", distf);
                /* disappear after last reference is closed */
                if (!(fd = mkstemp(distf)) || !(dfp = fdopen(fd, "w+")))
                        error("can't create redistribution file %s.", distf);
                /* disappear after last reference is closed */