I have come up with a fix/workaround which turns off the “insecure world
writable” warning message.
In my code, I pass a string (exec_str) to exec:
exec_str = "./foo.pl test" exec(exec_str)
Depending on my PATH, this can point out any number of world-writable
directories on my network.
If I change the above so I’m just adding a CR to the end of exec_str, I
now do not see the warning message any longer:
exec_str = "./foo.pl test\n" exec(exec_str)
Anyone have an idea why this works?