From 652baf7debde3d02e8f3b75f2aaaefd0eec6bce6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 26 Jun 2012 16:46:25 -0700 Subject: root-uid: new module This is for portability to Tandem's NonStop Kernel. * lib/root-uid.h, modules/root-uid: New files. * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c: * lib/write-any-file.c, tests/test-sethostname2.c: Include "root-uid.h". * lib/euidaccess.c (euidaccess): * lib/pt_chown.c (main): * lib/unlinkdir.c (cannot_unlink_dir): * lib/write-any-file.c (can_write_any_file): * m4/mknod.m4 (gl_FUNC_MKNOD): * tests/test-sethostname2.c (geteuid, main): Don't assume ROOT_UID == 0. * modules/euidaccess (Depends-on): * modules/pt_chown (Depends-on): * modules/sethostname-tests (Depends-on): * modules/unlinkdir (Depends-on): * modules/write-any-file (Depends-on): Add root-uid. --- modules/sethostname-tests | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/sethostname-tests') diff --git a/modules/sethostname-tests b/modules/sethostname-tests index 3529abb2c9..ea4a81e1e6 100644 --- a/modules/sethostname-tests +++ b/modules/sethostname-tests @@ -6,6 +6,7 @@ tests/macros.h Depends-on: gethostname +root-uid configure.ac: AC_CHECK_FUNCS_ONCE([geteuid]) -- cgit v1.2.1