rcs-si / module_check

Check if environment variables within a module file are defined correctly
2 stars 0 forks source link

Detect globally writable files in the module directory #11

Open bu-bgregor opened 10 months ago

bu-bgregor commented 10 months ago

per our discussion...

Add a new moduleloadtest version (with a non-numeric name) with a globally writable file lurking within.

bu-bgregor commented 10 months ago

Seamus found the Python os.stat() function, it returns a "stat_result" that has the req'd info: https://docs.python.org/3.6/library/os.html#os.stat_result