[sheepdog] [PATCH v2 1/2] collie: confirm when rolling back to the snapshot

Liu Yuan namei.unix at gmail.com
Wed Apr 10 10:10:44 CEST 2013


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.

Thanks,
Yuan



More information about the sheepdog mailing list