Browse Source

Fix a bug while restoring STDERR file descriptor (Debian patch 11_fix_stderr_fd)

Cyprien Devillez 5 years ago
parent
commit
1e36f050f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      autopostgresqlbackup

+ 1 - 1
autopostgresqlbackup

@@ -547,7 +547,7 @@ fi
 
 #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