client: pxar: do not attempt to set uid/gid in test
Setting the uid/gid for the files and folders of the test directory structure will not work when lacking the permissions. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
766faeb04a
commit
bab0645cc6
@ -1814,16 +1814,14 @@ mod tests {
|
||||
);
|
||||
|
||||
let dir_metadata = Metadata {
|
||||
stat: pxar::Stat::default().mode(0o777u64).set_dir().gid(0).uid(0),
|
||||
stat: pxar::Stat::default().mode(0o777u64).set_dir(),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let file_metadata = Metadata {
|
||||
stat: pxar::Stat::default()
|
||||
.mode(0o777u64)
|
||||
.set_regular_file()
|
||||
.gid(0)
|
||||
.uid(0),
|
||||
.set_regular_file(),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user