From 42a973642ea34be3f61ad9e574595b1cb7d11eda Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Thu, 11 Oct 2007 15:10:00 +0300 Subject: [PATCH] added use_temp_dir.patch to mine in order to avoid noise in var/adm/postinstall --- archiver/mine/use_temp_dir.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 archiver/mine/use_temp_dir.patch diff --git a/archiver/mine/use_temp_dir.patch b/archiver/mine/use_temp_dir.patch new file mode 100644 index 000000000..9ab074b3b --- /dev/null +++ b/archiver/mine/use_temp_dir.patch @@ -0,0 +1,26 @@ +use a real temp dir like 'var/tmp' for temp files instead of +'var/adm/postinstall' which is used for something else +diff -ruN mine-0.23.orig/install.c mine-0.23/install.c +--- mine-0.23.orig/install.c 2005-08-09 13:57:29.000000000 +0300 ++++ mine-0.23/install.c 2007-10-11 14:47:58.753311837 +0300 +@@ -141,7 +141,7 @@ + if ( ! mode_test ) + { + char postinst[1024]; +- snprintf(postinst, 1024, "%s/var/adm/postinstall/%s-install.XXXXXX", root, pname); ++ snprintf(postinst, 1024, "%s/var/tmp/%s-install.XXXXXX", root, pname); + if ( mkstemp(postinst) != -1 ) + logfile = fopen(postinst, "w"); + if ( mode_verbose ) { +diff -ruN mine-0.23.orig/remove.c mine-0.23/remove.c +--- mine-0.23.orig/remove.c 2005-08-09 13:57:29.000000000 +0300 ++++ mine-0.23/remove.c 2007-10-11 14:48:35.250803447 +0300 +@@ -102,7 +102,7 @@ + if ( ! mode_test ) + { + char postinst[1024]; +- snprintf(postinst, 1024, "%s/var/adm/postinstall/%s-remove.XXXXXX", ++ snprintf(postinst, 1024, "%s/var/tmp/%s-remove.XXXXXX", + root, package); + if ( mkstemp(postinst) != -1 ) + logfile = fopen(postinst, "w");