diff options
| author | Sam Varshavchik | 2021-03-25 07:18:07 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2021-03-25 07:18:45 -0400 |
| commit | a05446f16401d6ae3c93247c3643f529f2672104 (patch) | |
| tree | bb0c61ea5966649d1d7bb5e84804e2e6417e5533 /makedat | |
| parent | 5c5087a2d7c404538826bb7b4e36a7eeaf73bd67 (diff) | |
| download | courier-libs-a05446f16401d6ae3c93247c3643f529f2672104.tar.bz2 | |
Fix makedat handling of files without a trailing newline, adjust imap errmsg.
Diffstat (limited to 'makedat')
| -rw-r--r-- | makedat/makedat.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/makedat/makedat.in b/makedat/makedat.in index 53259ab..4278a3a 100644 --- a/makedat/makedat.in +++ b/makedat/makedat.in @@ -1,7 +1,7 @@ #! @SHELL@ # # -# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for +# Copyright 1998 - 2021 Double Precision, Inc. See COPYING for # distribution information. # # Generic wrapper for makedat. @@ -83,10 +83,16 @@ get_access() { then if test "$srcfile" != "CVS" then - find -L "$srcfile" -maxdepth 1 -type f -not -name "*~" -not -regex ".*\.dpkg-[a-z]*" -exec cat {} \; + find -L "$srcfile" -maxdepth 1 -type f -not -name "*~" -not -regex ".*\.dpkg-[a-z]*" -print | + while read F + do + @CAT@ "$F" + echo + done fi else - cat "$srcfile" || return + @CAT@ "$srcfile" || return + echo fi echo "." } |
