summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorFlo <debianflo@gmx.at>2013-08-25 21:26:54 +0200
committerAndreas Beckmann <anbe@debian.org>2013-09-13 05:44:36 +0200
commitd79aad6ce8752b75a0eb2eff131736f2380ca650 (patch)
tree87ac8a8222dfa3800cc8a7d3fa942657ee3122a9 /debian
parentf9a5403c37841921d5f8472c4d87b9ac1515ce58 (diff)
downloadsendmail-d79aad6ce8752b75a0eb2eff131736f2380ca650.tar.gz
fix infinite loop in update_db
Diffstat (limited to 'debian')
-rw-r--r--debian/local/update_db.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/local/update_db.in b/debian/local/update_db.in
index c76e504..e08d4db 100644
--- a/debian/local/update_db.in
+++ b/debian/local/update_db.in
@@ -476,10 +476,8 @@ for file in $db_files; do \
line=$(grep -Ee "^[[:space:]]*$file" \
@sysconfdir@/mail/databases || true);
while ([ "$line" != "" ]); do
- str=$(echo "$line" | cut -d "
-" -f 1);
- line=$(echo "$line" | cut -d "
-" -f 2-);
+ str=$(echo "$line" | head -n 1)
+ line=$(echo "$line" | tail -n +2)
# Strip line back into four pieces: feature, type, opts, name
dbfeat=$(echo "$str" | cut -d ":" -f 1);