mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
build: print uids as unsigned
Reported by Michal Privoznik. * src/security/security_dac.c (virSecurityDACGenLabel): Use correct format.
This commit is contained in:
parent
9b704ab823
commit
add633bdf9
@ -921,7 +921,7 @@ virSecurityDACGenLabel(virSecurityManagerPtr mgr,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_SECLABEL_DYNAMIC:
|
case VIR_DOMAIN_SECLABEL_DYNAMIC:
|
||||||
if (virAsprintf(&seclabel->label, "%d:%d",
|
if (virAsprintf(&seclabel->label, "%u:%u",
|
||||||
(unsigned int) priv->user,
|
(unsigned int) priv->user,
|
||||||
(unsigned int) priv->group) < 0) {
|
(unsigned int) priv->group) < 0) {
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user