version 1.1.1.1, 1999/11/18 16:29:01 |
version 1.1.1.1.8.1, 2002/01/18 16:14:46 |
|
|
/* |
/* |
* Copyright (c) 1996, 1998, 1999 Todd C. Miller <Todd.Miller@courtesan.com> |
* Copyright (c) 1996, 1998, 1999, 2001 |
* All rights reserved. |
* Todd C. Miller <Todd.Miller@courtesan.com>. All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* modification, are permitted provided that the following conditions |
|
|
|
|
#include "config.h" |
#include "config.h" |
|
|
|
#include <sys/types.h> |
|
#include <sys/stat.h> |
|
#include <sys/param.h> |
#include <stdio.h> |
#include <stdio.h> |
#ifdef HAVE_UNISTD_H |
|
#include <unistd.h> |
|
#endif /* HAVE_UNISTD_H */ |
|
#ifdef HAVE_STRING_H |
#ifdef HAVE_STRING_H |
#include <string.h> |
# include <string.h> |
|
#else |
|
# ifdef HAVE_STRINGS_H |
|
# include <strings.h> |
|
# endif |
#endif /* HAVE_STRING_H */ |
#endif /* HAVE_STRING_H */ |
#ifdef HAVE_STRINGS_H |
#ifdef HAVE_UNISTD_H |
#include <strings.h> |
# include <unistd.h> |
#endif /* HAVE_STRINGS_H */ |
#endif /* HAVE_UNISTD_H */ |
#include <errno.h> |
#include <errno.h> |
#include <sys/types.h> |
|
#include <sys/stat.h> |
|
#include <sys/param.h> |
|
|
|
#include "sudo.h" |
#include "sudo.h" |
|
|
#ifndef STDC_HEADERS |
|
extern int stat __P((const char *, struct stat *)); |
|
#endif /* !STDC_HEADERS */ |
|
|
|
#ifndef lint |
#ifndef lint |
static const char rcsid[] = "$Sudo: goodpath.c,v 1.37 1999/08/20 20:37:14 millert Exp $"; |
static const char rcsid[] = "$Sudo: goodpath.c,v 1.38 2001/12/14 19:52:47 millert Exp $"; |
#endif /* lint */ |
#endif /* lint */ |
|
|
/* |
/* |