I’m trying to find all subfolders in a file’s path that have ‘others exec’ permission.
I’ve tried to use strtok(path_str,"/") to break the path string, but when using stat() for the sub-directories of the root of the process I run, I get the “not a file or folder” error.
Any suggestions on how I can overcome this error?
I’ve fixed it,
First I removed the first ‘/’ from the path (I’m not fully understand why it so)
Than I Changed the code into do-while to access the file at the end.
So here is the entire code:
Thank You caf and all for your assistance.