mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-01 18:57:20 +00:00
Fix r_file_is_directory()
This commit is contained in:
parent
ccc891a352
commit
99a6dec209
@ -34,9 +34,9 @@ R_API boolt r_file_is_directory(const char *str) {
|
||||
return R_FALSE;
|
||||
if (stat (str, &buf)==-1)
|
||||
return R_FALSE;
|
||||
if ((S_IFBLK & buf.st_mode))
|
||||
if ((S_IFBLK & buf.st_mode) == S_IFBLK)
|
||||
return R_FALSE;
|
||||
return ((S_IFDIR & buf.st_mode))? R_TRUE: R_FALSE;
|
||||
return (S_IFDIR==(S_IFDIR & buf.st_mode))? R_TRUE: R_FALSE;
|
||||
}
|
||||
|
||||
R_API boolt r_file_fexists(const char *fmt, ...) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user