summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-02 23:56:01 +0000
committerdd <dd@FreeBSD.org>2001-07-02 23:56:01 +0000
commitedba9b52a2d2c640456bef41368d64238fafd674 (patch)
tree6013b1b40da143d85dfde8a4be529b58eae4a698 /usr.sbin/mountd
parent1aa95d93559c54673a2b242b4ef4c64a0f93a3bc (diff)
downloadFreeBSD-src-edba9b52a2d2c640456bef41368d64238fafd674.zip
FreeBSD-src-edba9b52a2d2c640456bef41368d64238fafd674.tar.gz
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 <adrian@ubergeeks.com>
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 553fbb6..2ca85f4 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;
OpenPOWER on IntegriCloud