[sheepdog] [PATCH v2 1/2] collie: confirm when rolling back to the snapshot
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Thu Apr 11 06:49:58 CEST 2013
At Wed, 10 Apr 2013 16:10:44 +0800,
Liu Yuan wrote:
>
> On 04/10/2013 12:01 PM, MORITA Kazutaka wrote:
> > + ret = fgets(input, sizeof(input), stdin);
> > + if (ret != NULL && strncasecmp(input, "yes", 3) != 0)
>
> Seems that this can't handle ret == NULL case. If fgets return NULL,
> we'll wrongly proceed.
Oops, thanks for the catch. I'll send v3.
Thanks,
Kazutaka
More information about the sheepdog
mailing list