$OpenBSD$

GNU's `cp -a' is equivalent to our `cp -pRP' execpt for hardlinks.

Index: test/T380-atomicity.sh
--- test/T380-atomicity.sh.orig
+++ test/T380-atomicity.sh
@@ -51,7 +51,7 @@ if test_require_external_prereq gdb; then
 
     # Prepare a snapshot of the updated maildir.  The gdb script will
     # update the database in this snapshot as it goes.
-    cp -a $MAIL_DIR $MAIL_DIR.snap
+    cp -pRP $MAIL_DIR $MAIL_DIR.snap
     cp ${NOTMUCH_CONFIG} ${NOTMUCH_CONFIG}.snap
     NOTMUCH_CONFIG=${NOTMUCH_CONFIG}.snap notmuch config set database.path $MAIL_DIR.snap
 
