void SFTP::handle_log_exit(void) { u_int i; for (i = 0; i < handles.size (); i++) if (handles[i].use != HANDLE_UNUSED) handle_log_close(i, "forced"); }
static void handle_log_exit(void) { u_int i; for (i = 0; i < num_handles; i++) if (handles[i].use != HANDLE_UNUSED) handle_log_close(i, "forced"); }
static void process_close(u_int32_t id) { int handle, ret, status = SSH2_FX_FAILURE; handle = get_handle(); debug3("request %u: close handle %u", id, handle); handle_log_close(handle, NULL); ret = handle_close(handle); status = (ret == -1) ? errno_to_portable(errno) : SSH2_FX_OK; send_status(id, status); }
static void process_close(u_int32_t id) { int r, handle, ret, status = SSH2_FX_FAILURE; if ((r = get_handle(iqueue, &handle)) != 0) fatal("%s: buffer error: %s", __func__, ssh_err(r)); debug3("request %u: close handle %u", id, handle); handle_log_close(handle, NULL); ret = handle_close(handle); status = (ret == -1) ? errno_to_portable(errno) : SSH2_FX_OK; send_status(id, status); }
void SFTP::process_close(void) { u_int32_t id; int handle, ret, status = SSH2_FX_FAILURE; id = get_int(); handle = get_handle(); debug3("request %u: close handle %u", id, handle); handle_log_close(handle, NULL); ret = handle_close(handle); status = (!ret) ? errno_to_portable(::GetLastError ()) : SSH2_FX_OK; send_status(id, status); }
static void process_close(u_int32_t id) { int handle, ret, status = SSH2_FX_FAILURE; handle = get_handle(); debug3("request %u: close handle %u", id, handle); handle_log_close(handle, NULL); ret = handle_close(handle); status = (ret == -1) ? errno_to_portable(errno) : SSH2_FX_OK; send_status(id, status); #ifdef NERSC_MOD s_audit("sftp_process_close_3", "count=%i int=%d int=%d int=%d", get_client_session_id(), (int)getppid(), id, handle); #endif }