eliminated a compiler warning
This commit is contained in:
@@ -106,12 +106,13 @@ char * sudo_goodpath(path)
|
|||||||
|
|
||||||
/* make sure path describes an executable regular file */
|
/* make sure path describes an executable regular file */
|
||||||
if (!err && S_ISREG(statbuf.st_mode) &&(statbuf.st_mode & 0000111))
|
if (!err && S_ISREG(statbuf.st_mode) &&(statbuf.st_mode & 0000111))
|
||||||
return(path);
|
return((char *)path);
|
||||||
else
|
else
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_REALPATH
|
#ifdef USE_REALPATH
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
*
|
*
|
||||||
@@ -226,6 +227,7 @@ char * sudo_realpath(old, new)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
*
|
*
|
||||||
* realpath_ret()
|
* realpath_ret()
|
||||||
|
Reference in New Issue
Block a user