(issuid): call issetugid if it exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10571 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * Copyright (c) 1998 Kungliga Tekniska H<>gskolan | ||||
|  * Copyright (c) 1998 - 2001 Kungliga Tekniska H<>gskolan | ||||
|  * (Royal Institute of Technology, Stockholm, Sweden).  | ||||
|  * All rights reserved.  | ||||
|  * | ||||
| @@ -41,6 +41,9 @@ RCSID("$Id$"); | ||||
| int | ||||
| issuid(void) | ||||
| { | ||||
| #if defined(HAVE_ISSETUGID) | ||||
|     return issetugid(); | ||||
| #endif | ||||
| #if defined(HAVE_GETUID) && defined(HAVE_GETEUID) | ||||
|     if(getuid() != geteuid()) | ||||
| 	return 1; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund