Source: xsp
Version: 4.2-2.1

tempfile has been deprecated for years.

diff --git a/debian/mono-apache-server4.postinst 
b/debian/mono-apache-server4.postinst
index b8d295d..bceda77 100644
--- a/debian/mono-apache-server4.postinst
+++ b/debian/mono-apache-server4.postinst
@@ -34,7 +34,7 @@ daemon_turn_off() {
 
 case "$1" in
     configure)
-       tempfile=$(/bin/tempfile)
+       tempfile=$(mktemp)
        
        db_get monoserver4/monoserver4_restartapache || true
        daemon_turn_off
diff --git a/debian/mono-xsp4.postinst b/debian/mono-xsp4.postinst
index 53cd252..b97db00 100644
--- a/debian/mono-xsp4.postinst
+++ b/debian/mono-xsp4.postinst
@@ -82,7 +82,7 @@ should_start() {
 
 case "$1" in
     configure)
-       tempfile=$(/bin/tempfile)
+       tempfile=$(mktemp)
        
        # Configure autostart, but don't prevent the init script
        # from starting it manually.

Reply via email to