From: Tim Kientzle Date: Sun, 14 Feb 2016 06:13:22 +0000 (-0800) Subject: Fix -c test: we forced uid/gid to 1000, so we should not compare against the current... X-Git-Tag: v3.1.901a~9^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cbe135a1311744c8fc1c87f39c7006cd8157ff6;p=thirdparty%2Flibarchive.git Fix -c test: we forced uid/gid to 1000, so we should not compare against the current user --- diff --git a/cpio/test/test_option_c.c b/cpio/test/test_option_c.c index 6aaba30ac..fa47b7e27 100644 --- a/cpio/test/test_option_c.c +++ b/cpio/test/test_option_c.c @@ -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.