]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: -- support for env_to_vec 1352/head
authorLoic Dachary <loic@dachary.org>
Mon, 3 Mar 2014 17:17:01 +0000 (18:17 +0100)
committerLoic Dachary <loic@dachary.org>
Mon, 3 Mar 2014 17:17:01 +0000 (18:17 +0100)
commit8982734a1b3cb9013718af5d57b5712f1b22c1c7
tree3b235a6b8637fb589c2efd057c0bdd01a855e86f
parentffdfb846a20e478f921232447188d49b5470f854
common: -- support for env_to_vec

When CEPH_ARGS is parsed each side of the -- must be appended to the
corresponding side of the existing argument list. For instance when

   -a -b -- foo bar

is merged with a CEPH_ARGS containing

   -c -d -- frob nitz

it must become

   -a -b -c -d -- foo bar frob nitz

http://tracker.ceph.com/issues/7578 fixes #7578

Signed-off-by: Loic Dachary <loic@dachary.org>
src/common/ceph_argparse.cc
src/test/ceph_argparse.cc