Bug 426 - sftp adds write permission when doing get -p
Summary: sftp adds write permission when doing get -p
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: -current
Hardware: All All
: P3 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 00:50 AEDT by gfernandez
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
Change for sftp to preserve permissions (1.21 KB, patch)
2002-11-07 00:56 AEDT, gfernandez
no flags Details | Diff
Change for sftp to preserve permissions (1.54 KB, patch)
2002-11-07 00:59 AEDT, gfernandez
no flags Details | Diff
Fix permissions on download (820 bytes, patch)
2003-01-03 15:12 AEDT, Damien Miller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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