pxar: change uid and gid to u32 instead of u64

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner authored and Dietmar Maurer committed 2019-08-03 08:51:51 +02:00
1 parent 5e50c606b0
commit ead7546a96
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -378,8 +378,8 @@ impl <'a, R: Read, F: Fn(&Path) -> Result<(), Error>> SequentialDecoder<'a, R, F
fn restore_ugid(&mut self, entry: &PxarEntry, fd: RawFd) -> Result<(), Error> {
let uid = entry.uid as u32;
let gid = entry.gid as u32;
let uid = entry.uid;
let gid = entry.gid;
let res = unsafe { libc::fchown(fd, uid, gid) };
Errno::result(res)?;