[sheepdog] [PATCH] md: trim last slashes from paths
Liu Yuan
namei.unix at gmail.com
Wed Apr 17 17:17:35 CEST 2013
On 04/17/2013 11:13 PM, MORITA Kazutaka wrote:
> This cannot handle a zero-length string. Although we don't pass "" to
> this function currently, adding
>
> if (path[0] == '\0')
> return;
>
> before the while loop looks better to me.
MD can't handle zero-length string and no need to. I think it is better
to add zero-length string check at collie side.
Thanks,
Yuan
More information about the sheepdog
mailing list