Skip to content
  • Niels Möller's avatar
    * src/sftp/sftp-server.c (struct sftp_file): New struct with fd · 745038b5
    Niels Möller authored
    and position.
    (enum struct sftp_handle_type): Renamed constants to
    HANDLE_TYPE_FILE and HANDLE_TYPE_DIRECTORY.
    (handle_t): Deleted typedef.
    (HANDLE_FILE): New macro replacing HANDLE_FD.
    (sftp_read): New function. Keep track of position, and use
    seek/pread only when appropriate.
    (sftp_write): Likewise.
    
    Rev: src/sftp/sftp-server.c:1.11
    745038b5