]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r349376: Fix strsep_quote() on strings without quotes.
authormav <mav@FreeBSD.org>
Thu, 27 Jun 2019 14:26:57 +0000 (14:26 +0000)
committermav <mav@FreeBSD.org>
Thu, 27 Jun 2019 14:26:57 +0000 (14:26 +0000)
commit5d898ab7f0e1d0e2a48078f29eb3926f85542737
tree5e8fd0d695d4253d933774b43c1200c1b6c5ad6c
parent4ff58cfcd1ab8014b4029aaa802d9fdcdd78ce07
MFC r349376: Fix strsep_quote() on strings without quotes.

For strings without quotes and escapes dstptr and srcptr are equal, so
zeroing *dstptr before checking *srcptr is not a good idea.  In practice
it means that in -maproot=65534:65533 everything after the colon is lost.

The problem was there since r293305, but before r346976 it was covered by
improper strsep_quote() usage.

PR: 238725

Approved by: re (gjb)
usr.sbin/mountd/mountd.c