From edba9b52a2d2c640456bef41368d64238fafd674 Mon Sep 17 00:00:00 2001 From: dd Date: Mon, 2 Jul 2001 23:56:01 +0000 Subject: [PATCH] Correct handling of continuation lines. Instead of treating the backslash as nothing, treat it like a space so that adjacent lines aren't glued together. PR: 8479 Submitted by: Adrian Filipi-Martin --- sbin/mountd/mountd.c | 4 ++++ usr.sbin/mountd/mountd.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 553fbb6f2c47..2ca85f427798 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -2040,6 +2040,10 @@ get_line() cp--; len--; } + if (cont_line) { + *++cp = ' '; + len++; + } *++cp = '\0'; if (len > 0) { totlen += len; diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 553fbb6f2c47..2ca85f427798 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -2040,6 +2040,10 @@ get_line() cp--; len--; } + if (cont_line) { + *++cp = ' '; + len++; + } *++cp = '\0'; if (len > 0) { totlen += len;