build: print uids as unsigned

Reported by Michal Privoznik.

* src/security/security_dac.c (virSecurityDACGenLabel): Use
correct format.
This commit is contained in:
Eric Blake 2012-10-23 08:38:33 -06:00
parent 9b704ab823
commit add633bdf9
1 changed files with 1 additions and 1 deletions

View File

@ -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();