Re: [PATCH] Fix parsing of uid/gid on Mingw32

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

 



On 21.08.2012 13:09, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> The DAC security driver uses the virStrToLong_ui function to
> parse the uid/gid out of the seclabel string. This works on
> Linux where 'uid_t' is an unsigned int, but on Mingw32 it is
> just an 'int'. This causes compiler warnings about signed/
> unsigned int pointer mis-match.
> 
> To avoid this, use explicit 'unsigned int ouruid' local
> vars to pass into virStrToLong_ui, and then simply assign
> to the 'uid_t' type after parsing
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  src/security/security_dac.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

ACK

Michal

--
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]