mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
case VIR_DOMAIN_SECLABEL_DYNAMIC:
|
||||
if (virAsprintf(&seclabel->label, "%d:%d",
|
||||
if (virAsprintf(&seclabel->label, "%u:%u",
|
||||
(unsigned int) priv->user,
|
||||
(unsigned int) priv->group) < 0) {
|
||||
virReportOOMError();
|
||||
|
|
Loading…
Reference in New Issue