OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.1 KiB

  1. use a real temp dir like 'var/tmp' for temp files instead of
  2. 'var/adm/postinstall' which is used for something else
  3. diff -ruN mine-0.23.orig/install.c mine-0.23/install.c
  4. --- mine-0.23.orig/install.c 2005-08-09 13:57:29.000000000 +0300
  5. +++ mine-0.23/install.c 2007-10-11 14:47:58.753311837 +0300
  6. @@ -141,7 +141,7 @@
  7. if ( ! mode_test )
  8. {
  9. char postinst[1024];
  10. - snprintf(postinst, 1024, "%s/var/adm/postinstall/%s-install.XXXXXX", root, pname);
  11. + snprintf(postinst, 1024, "%s/var/tmp/%s-install.XXXXXX", root, pname);
  12. if ( mkstemp(postinst) != -1 )
  13. logfile = fopen(postinst, "w");
  14. if ( mode_verbose ) {
  15. diff -ruN mine-0.23.orig/remove.c mine-0.23/remove.c
  16. --- mine-0.23.orig/remove.c 2005-08-09 13:57:29.000000000 +0300
  17. +++ mine-0.23/remove.c 2007-10-11 14:48:35.250803447 +0300
  18. @@ -102,7 +102,7 @@
  19. if ( ! mode_test )
  20. {
  21. char postinst[1024];
  22. - snprintf(postinst, 1024, "%s/var/adm/postinstall/%s-remove.XXXXXX",
  23. + snprintf(postinst, 1024, "%s/var/tmp/%s-remove.XXXXXX",
  24. root, package);
  25. if ( mkstemp(postinst) != -1 )
  26. logfile = fopen(postinst, "w");