From 5353389faf77bb2edb54e785c3d8aca323188dad Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Mon, 3 Jul 2017 14:51:21 +0530 Subject: features/libgfchangelog: Fix encoding to encode only space and newline libgfchangelog was encoding path using spec rfc3986, but encoding only required for SPACE and NEWLINE chars since the NEWLINE char is used as record separator and SPACE as field separator in the parsed changelogs output. Changed the encoding function to encode only SPACE and NEWLINE. BUG: 1451724 Change-Id: I4305459aab9e710517dd3eb065f0024503064b77 Signed-off-by: Aravinda VK Reviewed-on: https://review.gluster.org/17674 Smoke: Gluster Build System Reviewed-by: Prashanth Pai CentOS-regression: Gluster Build System Reviewed-by: Kotresh HR --- xlators/features/changelog/lib/src/gf-changelog-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/changelog/lib/src/gf-changelog-helpers.c') diff --git a/xlators/features/changelog/lib/src/gf-changelog-helpers.c b/xlators/features/changelog/lib/src/gf-changelog-helpers.c index 8b35f4e9416..45cf55778e4 100644 --- a/xlators/features/changelog/lib/src/gf-changelog-helpers.c +++ b/xlators/features/changelog/lib/src/gf-changelog-helpers.c @@ -36,7 +36,7 @@ gf_changelog_write (int fd, char *buffer, size_t len) } void -gf_rfc3986_encode (unsigned char *s, char *enc, char *estr) +gf_rfc3986_encode_space_newline (unsigned char *s, char *enc, char *estr) { for (; *s; s++) { if (estr[*s]) -- cgit