Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use -R on a folder on windows #12

Open
davide9 opened this issue Jul 15, 2020 · 0 comments
Open

Can't use -R on a folder on windows #12

davide9 opened this issue Jul 15, 2020 · 0 comments

Comments

@davide9
Copy link

davide9 commented Jul 15, 2020

The analysis starts with the function process_file.
If the path provided is a directory with the flag -R the result is that nothing is processed when the execution reach line 1106 of engine.c

if(S_ISDIR(fstat.st_mode)) {
/* Need to error catch here.*/
if( flags & RECURSIVE_FILE_SCAN ) {
process_directory(filename,forcelang);
return;
}
}

S_ISDIR will return true for the root folder where the analysis was requested but the flag will tell to not do a recursive scan (not even on the root) so all is skipped and the if at line 1114 will terminate the process printing NOT REGULAR FILE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant