]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: print uids as unsigned
authorEric Blake <eblake@redhat.com>
Tue, 23 Oct 2012 14:38:33 +0000 (08:38 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 23 Oct 2012 14:38:33 +0000 (08:38 -0600)
Reported by Michal Privoznik.

* src/security/security_dac.c (virSecurityDACGenLabel): Use
correct format.

src/security/security_dac.c

index a1aa0ef8243762838ec88a2fe73e692cfba4a5b7..0bdbd51023d43fcf7fcf8915a2bc36e32664c955 100644 (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();