All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Fix bs_rbd.c slurp_to_semi() not consuming terminating semicolon
@ 2014-01-22  2:14 Thomas Matysik
  2014-01-22  2:14 ` [PATCH 2/2] Add "cluster" option to bs_rbd.c to specify cluster name Thomas Matysik
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Thomas Matysik @ 2014-01-22  2:14 UTC (permalink / raw)
  To: stgt; +Cc: Thomas Matysik

slurp_to_semi() would not consume the terminating semicolon on a
option specified in --bsopts, so any options other than the first
would be ignored as invalid.

Signed-off-by: Thomas Matysik <thomas@belton.co.nz>
---
 usr/bs_rbd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/usr/bs_rbd.c b/usr/bs_rbd.c
index 3ea9d36..f797fd5 100644
--- a/usr/bs_rbd.c
+++ b/usr/bs_rbd.c
@@ -480,6 +480,9 @@ static char *slurp_to_semi(char **p)
 	strncpy(ret, *p, len);
 	ret[len] = '\0';
 	*p = end;
+	// Jump past the semicolon, if we stopped at one
+	if (**p == ';')
+		*p = end + 1;
 	return ret;
 }
 
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-11  0:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22  2:14 [PATCH 1/2] Fix bs_rbd.c slurp_to_semi() not consuming terminating semicolon Thomas Matysik
2014-01-22  2:14 ` [PATCH 2/2] Add "cluster" option to bs_rbd.c to specify cluster name Thomas Matysik
2014-02-10 22:12   ` Dan Mick
2014-02-11  0:16     ` FUJITA Tomonori
2014-01-24  5:13 ` [PATCH 1/2] Fix bs_rbd.c slurp_to_semi() not consuming terminating semicolon FUJITA Tomonori
2014-02-10 22:07   ` Dan Mick
2014-02-10 22:12 ` Dan Mick
2014-02-11  0:14   ` FUJITA Tomonori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.