[Ssh-sftp-perl-users] ERROR:SFTP->put died: Couldn't fsetstat: Permission denied
Brought to you by:
dbrobins
From: Tim P. <tim...@yo...> - 2014-01-15 15:47:43
|
Hello list, Using Net::SFTP 0.10 to automate transferring files to one of our vendors has produced this error: SFTP->put died: Couldn't fsetstat: Permission denied I've commented out the $sftp->do_fsetstat($handle,$a) line from SFTP.pm and the file goes. I believe this is due to the overly restrictive environment our vendor has set up. I didn't look too close but it looks like the fsetstat is trying to set the file permission bits to 0777. Is there any way to perhaps get an option put into this module to be able to disable this behavior? I do not want to leave the system like this as module upgrades will break the script again. I can't be the only one that will trip over this. Thank you, -- Tim Pushor York Electronics Ltd. Information Technology Phone: 403.207.0202 x243 Mobile: 403.978.6502 |