mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 22:49:01 +00:00
Renamed nmap_fileexistsandisreadable() by file_is_readable(). Former was
hardly readable and is not even a good candidate for longest method name (http://msdn.microsoft.com/en-us/library/system.windows.media.textformatting.textsource.gettexteffectcharacterindexfromtextsourcecharacterindex.aspx#Y0)
This commit is contained in:
@@ -741,7 +741,7 @@ int optcmp(const char *a, const char *b) {
|
||||
/* Returns one if the file pathname given exists, is not a directory and
|
||||
* is readable by the executing process. Returns two if it is readable
|
||||
* and is a directory. Otherwise returns 0. */
|
||||
int fileexistsandisreadable(const char *pathname) {
|
||||
int file_is_readable(const char *pathname) {
|
||||
char *pathname_buf = strdup(pathname);
|
||||
int status = 0;
|
||||
struct stat st;
|
||||
|
||||
Reference in New Issue
Block a user