Re: [PATCH] Rewrite openvzSetUUID.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Meyering wrote:
> +	/* Record failure if any of these fails,
> +	   and be careful always to close the stream.  */
> +	if ((fseek(fp, 0, SEEK_END) < 0)
> +	    + (fprintf(fp, "\n#UUID: %s\n", uuidstr) < 0);
> +	    + (fclose(fp) == EOF))
> +	    ret = -1;

I don't think you want to fprintf() if the fseek() fails?

-jim

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]