[Fakeroot-commits] fakeroot--main--0.0--patch-39 commit: Apply Dmitry V. Levin\\"s getresuid/getresgid/setfsuid/setfsgid patch

Clint Adams schizo@costa.debian.org
Sat, 16 Apr 2005 12:46:44 +0000


2004-11-27  Clint Adams  <schizo@debian.org>  patch-39

	* communicate.h:
	* configure.ac:
	* debian/changelog:
	* libfakeroot.c:
	* wrapfunc.inp:

	Apply Dmitry V. Levin's getresuid/getresgid/setfsuid/setfsgid patch

	fakeroot (1.2) unstable; urgency=low

	  * Apply patch from Dmitry V. Levin <ldv@altlinux.org>:
	    (Implement wrappers for getresuid, getresgid, setfsuid and
	     setfsgid functions.)
	   - communicate.h: New macros: FAKEROOTFUID_ENV, FAKEROOTFGID_ENV.
	   - configure.ac: Check for getresuid, getresgid, setfsuid and
	     setfsgid functions.
	   - libfakeroot.c: (faked_fs_uid, faked_fs_gid): New variables.
	     (set_faked_uid, set_faked_gid, set_faked_euid, set_faked_egid,
	     set_faked_reuid, set_faked_regid, set_faked_resuid,
	     set_faked_resgid): Set these variables.
	     (read_fs_uid, read_fs_gid, write_fs_uid, write_fs_gid): New
	     functions.
	     (read_uids, read_gids, write_uids, write_gids, set_faked_euid,
	     set_faked_egid): Use these functions.
	     (get_faked_suid, get_faked_sgid, get_faked_fsuid,
	     get_faked_fsgid, set_faked_fsuid, set_faked_fsgid): New functions.
	     [HAVE_GETRESUID] (getresuid): New function.
	     [HAVE_GETRESGID] (getresgid): Likewise.
	     [HAVE_SETFSUID] (set_faked_fsuid, setfsuid): New functions.
	     [HAVE_SETFSGID] (set_faked_fsgid, setfsgid): Likewise.
	   - wrapfunc.inp [HAVE_GETRESUID] (getresuid): New wrapper.
	     [HAVE_GETRESGID] (getresgid): Likewise.
	     [HAVE_SETFSUID] (setfsuid): Likewise.
	     [HAVE_SETFSGID] (setfsgid): Likewise.