2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

now use _S_* stat stuff to be ansi-like

This commit is contained in:
Todd C. Miller
1994-03-12 19:33:10 +00:00
parent 34e6103462
commit e4488ba028

View File

@@ -91,6 +91,14 @@ extern char *strdup();
#endif /* !STDC_HEADERS */
#ifndef _S_IFMT
#define _S_IFMT S_IFMT
#endif /* _S_IFMT */
#ifndef _S_IFLNK
#define _S_IFLNK S_IFLNK
#endif /* _S_IFLNK */
/*******************************************************************
*
* find_path()
@@ -271,7 +279,7 @@ char *qualify(n)
return (NULL);
}
if ((statbuf.st_mode & S_IFMT) == S_IFLNK) {
if ((statbuf.st_mode & _S_IFMT) == _S_IFLNK) {
int linklen; /* length of link contents */
char newname[MAXPATHLEN + 1]; /* temp storage to build new
* name */