From 7d9204a7e2a1e5ad4c56633ac2ecdcf78e7e5f59 Mon Sep 17 00:00:00 2001 From: KWSys Upstream Date: Mon, 31 Jan 2022 15:26:19 -0500 Subject: KWSys 2022-01-31 (9fd1660a) Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 9fd1660a9ddeaf9cb590bfd801c94a7a374ae94b (master). Upstream Shortlog ----------------- Aaron Liu (1): dc6b6641 testSystemTools: apply root-check on AIX --- testSystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testSystemTools.cxx b/testSystemTools.cxx index 21d6f04..487da8d 100644 --- a/testSystemTools.cxx +++ b/testSystemTools.cxx @@ -336,7 +336,7 @@ static bool CheckFileOperations() // While we're at it, check proper TestFileAccess functionality. bool do_write_test = true; #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ - defined(__NetBSD__) || defined(__DragonFly__) + defined(__NetBSD__) || defined(__DragonFly__) || defined(__HOS_AIX__) // If we are running as root on POSIX-ish systems (Linux and the BSDs, // at least), ignore this check, as root can always write to files. do_write_test = (getuid() != 0); -- cgit v0.12