Timeline for Optimizing Perl script which looks for world-writable files
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 14, 2014 at 16:20 | history | edited | 200_success |
edited tags
|
|
Jun 14, 2014 at 14:16 | answer | added | hexcoder | timeline score: 1 | |
May 28, 2014 at 3:04 | comment | added | snoopy |
I'd try a run using the unix find utility for comparison, e.g. find / -perm -2 ! -type l -ls .
|
|
May 23, 2014 at 7:09 | comment | added | mpapec |
I would replace -f and stat calls inside wanted with File::stat equivalents.
|
|
May 23, 2014 at 4:00 | history | edited | theillien | CC BY-SA 3.0 |
edited title
|
May 23, 2014 at 3:39 | comment | added | theillien | Moved the world-writable test to the top. It did not offer a change to the execution time. I also anchored each of the special directories in the regex. | |
May 23, 2014 at 3:09 | history | edited | Jamal | CC BY-SA 3.0 |
edited tags; edited title
|
May 23, 2014 at 3:01 | comment | added | Bob Dalgleish | You might try rearranging the filters so that you determine if a file is interesting AFTER you determine if it is world-writable. Also, your test for basic directory will work improperly for any directory named "procedure" for instance. | |
May 23, 2014 at 2:47 | history | asked | theillien | CC BY-SA 3.0 |