summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sftp-server.c b/sftp-server.c
index 0e0040094..51026de4e 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -207,7 +207,7 @@ handle_to_dir(int handle)
207int 207int
208handle_to_fd(int handle) 208handle_to_fd(int handle)
209{ 209{
210 if (handle_is_ok(handle, HANDLE_FILE)) 210 if (handle_is_ok(handle, HANDLE_FILE))
211 return handles[handle].fd; 211 return handles[handle].fd;
212 return -1; 212 return -1;
213} 213}
@@ -616,7 +616,7 @@ process_opendir(void)
616 id = get_int(); 616 id = get_int();
617 path = get_string(NULL); 617 path = get_string(NULL);
618 TRACE("opendir id %d path %s", id, path); 618 TRACE("opendir id %d path %s", id, path);
619 dirp = opendir(path); 619 dirp = opendir(path);
620 if (dirp == NULL) { 620 if (dirp == NULL) {
621 status = errno_to_portable(errno); 621 status = errno_to_portable(errno);
622 } else { 622 } else {
@@ -627,7 +627,7 @@ process_opendir(void)
627 send_handle(id, handle); 627 send_handle(id, handle);
628 status = SSH2_FX_OK; 628 status = SSH2_FX_OK;
629 } 629 }
630 630
631 } 631 }
632 if (status != SSH2_FX_OK) 632 if (status != SSH2_FX_OK)
633 send_status(id, status); 633 send_status(id, status);
@@ -932,7 +932,7 @@ main(int ac, char **av)
932 handle_init(); 932 handle_init();
933 933
934#ifdef DEBUG_SFTP_SERVER 934#ifdef DEBUG_SFTP_SERVER
935 log_init("sftp-server", SYSLOG_LEVEL_DEBUG1, SYSLOG_FACILITY_AUTH, 0); 935 log_init("sftp-server", SYSLOG_LEVEL_DEBUG1, SYSLOG_FACILITY_AUTH, 0);
936#endif 936#endif
937 937
938 in = dup(STDIN_FILENO); 938 in = dup(STDIN_FILENO);