[pbs-devel] [PATCH proxmox-backup 1/2] client: pxar: do not attempt to set uid/gid in test

Christian Ebner c.ebner at proxmox.com
Thu Jun 6 10:17:10 CEST 2024


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 at proxmox.com>
---
 pbs-client/src/pxar/create.rs | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
index fcfb9a09c..d5eb7bd02 100644
--- a/pbs-client/src/pxar/create.rs
+++ b/pbs-client/src/pxar/create.rs
@@ -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()
         };
 
-- 
2.39.2





More information about the pbs-devel mailing list