Description: Fix a bug while restoring STDERR file descriptor
Author: Cyprien Devillez <cyprien.devillez@gmail.com>
Bug-Debian: http://bugs.debian.org/711983
Last-Update: 2013-09-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/autopostgresqlbackup
+++ b/autopostgresqlbackup
@@ -547,7 +547,7 @@
 
 #Clean up IO redirection
 exec 1>&6 6>&-      # Restore stdout and close file descriptor #6.
-exec 1>&7 7>&-      # Restore stdout and close file descriptor #7.
+exec 2>&7 7>&-      # Restore stdout and close file descriptor #7.
 
 if [ "$MAILCONTENT" = "files" ]
 then
