patch-unixpk_c 648 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-unixpk_c,v 1.6 2012/12/11 11:01:31 sthen Exp $
  2. --- unixpk.c.orig Mon Jul 21 21:50:41 2003
  3. +++ unixpk.c Tue Dec 11 10:52:18 2012
  4. @@ -25,6 +25,8 @@
  5. #include <stdio.h>
  6. #include <string.h>
  7. #include <errno.h>
  8. +#include <stdlib.h>
  9. +#include <unistd.h>
  10. #include "common.h"
  11. #include "version.h"
  12. #include "xmalloc.h"
  13. @@ -164,9 +166,9 @@ int main(int argc, char **argv)
  14. strcpy(fnamebuf, getenv("TMPDIR"));
  15. }
  16. else {
  17. - strcpy(fnamebuf, "/usr/tmp");
  18. + strcpy(fnamebuf, "/var/tmp");
  19. }
  20. - strcat(fnamebuf, "/mpackXXXXXX");
  21. + strcat(fnamebuf, "/mpackXXXXXXXXXX");
  22. mktemp(fnamebuf);
  23. outfname = strsave(fnamebuf);
  24. }