]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-fcc
1) With SETGID_MAIL enabled (only with dot locking), if the chgrp of
[nmh] / test / post / test-post-fcc
index 159823f..946969c 100755 (executable)
@@ -54,9 +54,8 @@ EOF
 
 msgname=`mhpath +inbox 11`
 
-sed -i.bak -e 's/^Date:.*/Date:/' "${msgname}"
-
-rm -f "${msgname}.bak"
+sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate
+mv "${msgname}".nodate "${msgname}"
 
 check "${testname}.msg.expected" "${msgname}"