]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix -c test: we forced uid/gid to 1000, so we should not compare against the current...
authorTim Kientzle <kientzle@acm.org>
Sun, 14 Feb 2016 06:13:22 +0000 (22:13 -0800)
committerTim Kientzle <kientzle@acm.org>
Sun, 14 Feb 2016 06:13:22 +0000 (22:13 -0800)
cpio/test/test_option_c.c

index 6aaba30ac19aa9c4579cb9ec73f1bb4b0ac71420..fa47b7e277d8a2b1bf59d1f10aa458b4f1c2aac5 100644 (file)
@@ -65,18 +65,14 @@ DEFINE_TEST(test_option_c)
 {
        FILE *filelist;
        int r;
-       int uid = -1;
-       int dev, ino, gid;
+       int uid = 1000;
+       int dev, ino, gid = 1000;
        time_t t, now;
        char *p, *e;
        size_t s;
 
        assertUmask(0);
 
-#if !defined(_WIN32)
-       uid = getuid();
-#endif
-
        /*
         * Create an assortment of files.
         * TODO: Extend this to cover more filetypes.