Bug 426

Summary: sftp adds write permission when doing get -p
Product: Portable OpenSSH Reporter: gfernandez
Component: sftpAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: -current   
Hardware: All   
OS: All   
Attachments:
Description Flags
Change for sftp to preserve permissions
none
Change for sftp to preserve permissions
none
Fix permissions on download none

Description gfernandez 2002-11-07 00:50:53 AEDT
sftp adds write permission when transferring a file. This is presumably so that 
it can have access to the file while writing it. However, when it later sets 
the permissions, it uses the permissions which included the added write access. 
As a result the access does not match the original mode.
Comment 1 gfernandez 2002-11-07 00:56:13 AEDT
Created attachment 165 [details]
Change for sftp to preserve permissions

This is a possible solution to the problem
Comment 2 gfernandez 2002-11-07 00:59:13 AEDT
Created attachment 166 [details]
Change for sftp to preserve permissions

this is a possible fix for the problem
Comment 3 Damien Miller 2003-01-03 15:12:16 AEDT
Created attachment 190 [details]
Fix permissions on download

shorter fix
Comment 4 Damien Miller 2003-01-07 10:48:35 AEDT
Applied - thanks.
Comment 5 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED