Subject: [libssh2] #260: libssh2 1.2.5 file permission issues

[libssh2] #260: libssh2 1.2.5 file permission issues

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Thu, 21 Feb 2013 00:31:15 -0000

#260: libssh2 1.2.5 file permission issues
--------------------+--------------------
 Reporter: Raji | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone: 1.4.3
Component: API | Version: 1.4.2
 Keywords: | Blocked By:
   Blocks: |
--------------------+--------------------
 I’m using libssh2 1.2.5 and try to do a sftp write. For the newly created
 files, write permission is not set for group and others,eventhough I make
 use of the flags (LIBSSH2_SFTP_S_IWGRP and LIBSSH2_SFTP_S_IWOTH).Always
 the files are created with read,write permission for owner and read
 permission for group,others.

 libssh2_sftp_open(sftp_session,
 sftppath,LIBSSH2_FXF_WRITE|LIBSSH2_FXF_CREAT|LIBSSH2_FXF_TRUNC,
 LIBSSH2_SFTP_S_IRUSR|LIBSSH2_SFTP_S_IWUSR|LIBSSH2_SFTP_S_IRGRP|
 LIBSSH2_SFTP_S_IWGRP | LIBSSH2_SFTP_S_IROTH | LIBSSH2_SFTP_S_IWOTH);

 Is this a known issue with libssh2 1.2.5?.This was working fine with
 libssh2 0.1.4.I used to pass 0 for mode value and the files would be
 created with read,write permission for user,group and others.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/260>
libssh2 <https://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-02-21