On Sat, Aug 20, 2011 at 03:08:43PM -0400, Scott Kitterman wrote:
 
> There are open bug reports for this in Debian and Ubuntu.  I expect this will 
> be fixed in the next uploads to each distro.

Ok, I assume it is this bug report (the debian report is linked from there):

https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/828047

Btw, my quick fix is:

diff -r 7fcbb071469b init.d/postfix
--- a/init.d/postfix    Sat Aug 20 21:03:59 2011 +0200
+++ b/init.d/postfix    Sat Aug 20 21:19:22 2011 +0200
@@ -82,19 +82,9 @@
                    $queue_dir/*) :;;  # skip stuff already in chroot
                    *)
                        if test -d "$ca_path"; then
-                           dest_dir="$queue_dir/${ca_path#/}" new=0
-                           if test -d "$dest_dir"
-                                # write to a new directory ...
-                               then dest_dir="$dest_dir.NEW" && new=1
-                               else mkdir --parent ${dest_dir%/*}
-                           fi
-                            # handle files in subdirectories
-                           find "$ca_path" -print0 | cpio -0pdL "$dest_dir"
-                           if [ "$new" = 1 ]; then
-                                # and replace the old directory
-                               rm -r "${dest_dir%.NEW}"
-                               mv "$dest_dir" "${dest_dir%.NEW}"
-                           fi
+                           dest_dir="$queue_dir/${ca_path#/}"
+                           rm -rf "$dest_dir"
+                           find "$ca_path" -print0 | cpio -0pdL "$queue_dir
                        fi
                        ;;
                esac


Best regards
Georg
-- 
Real programmers don't comment their code.  It was hard to write, it
should be hard to understand.

Reply via email to