http://qs1969.pair.com?node_id=378461


in reply to Re: Hijacking perl functions
in thread Hijacking perl functions

Very cool! But not what I'm doing. I have a script that does a chmod on a config file, but if the file is not owned by the user of my script it dies. So, I want to subvert chmod by having it create a new config from the old, replace the old with the new and chmod that file. So in the end the config file would be owned by the scripts user and have the proper perms. I know that this would require read permissions for my user, but in this case that is not an issue as I have control over the file.

Thanks!

Sweetblood