Files
Arquivotheca.SunOS-4.1.4/lib/libc/gen/common/issecure.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

20 lines
382 B
C

#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)issecure.c 1.1 94/10/31 Copyr 1987 Sun Micro"; /* c2 secure */
#endif
#include <sys/file.h>
#define PWDADJ "/etc/security/passwd.adjunct"
/*
* Is this a secure system ?
*/
issecure()
{
static int securestate = -1;
if (securestate == -1)
securestate = (access(PWDADJ, F_OK) == 0);
return(securestate);
}