Lines Matching refs:sshp

973   struct SSHPROTO *sshp = data->req.p.ssh;  in ssh_statemach_act()  local
1464 result = Curl_getworkingpath(data, sshc->homedir, &sshp->path); in ssh_statemach_act()
1519 sshp->path); in ssh_statemach_act()
1601 memset(&sshp->quote_attrs, 0, sizeof(LIBSSH2_SFTP_ATTRIBUTES)); in ssh_statemach_act()
1718 &sshp->quote_attrs); in ssh_statemach_act()
1737 sshp->quote_attrs.gid = strtoul(sshc->quote_path1, NULL, 10); in ssh_statemach_act()
1738 sshp->quote_attrs.flags = LIBSSH2_SFTP_ATTR_UIDGID; in ssh_statemach_act()
1739 if(sshp->quote_attrs.gid == 0 && !ISDIGIT(sshc->quote_path1[0]) && in ssh_statemach_act()
1751 sshp->quote_attrs.permissions = strtoul(sshc->quote_path1, NULL, 8); in ssh_statemach_act()
1752 sshp->quote_attrs.flags = LIBSSH2_SFTP_ATTR_PERMISSIONS; in ssh_statemach_act()
1754 if(sshp->quote_attrs.permissions == 0 && in ssh_statemach_act()
1766 sshp->quote_attrs.uid = strtoul(sshc->quote_path1, NULL, 10); in ssh_statemach_act()
1767 sshp->quote_attrs.flags = LIBSSH2_SFTP_ATTR_UIDGID; in ssh_statemach_act()
1768 if(sshp->quote_attrs.uid == 0 && !ISDIGIT(sshc->quote_path1[0]) && in ssh_statemach_act()
1804 sshp->quote_attrs.atime = (unsigned long)date; in ssh_statemach_act()
1806 sshp->quote_attrs.mtime = (unsigned long)date; in ssh_statemach_act()
1808 sshp->quote_attrs.flags = LIBSSH2_SFTP_ATTR_ACMODTIME; in ssh_statemach_act()
1820 &sshp->quote_attrs); in ssh_statemach_act()
2023 rc = libssh2_sftp_stat_ex(sshc->sftp_session, sshp->path, in ssh_statemach_act()
2024 curlx_uztoui(strlen(sshp->path)), in ssh_statemach_act()
2041 if(sshp->path[strlen(sshp->path)-1] == '/') in ssh_statemach_act()
2061 rc = libssh2_sftp_stat_ex(sshc->sftp_session, sshp->path, in ssh_statemach_act()
2062 curlx_uztoui(strlen(sshp->path)), in ssh_statemach_act()
2092 libssh2_sftp_open_ex(sshc->sftp_session, sshp->path, in ssh_statemach_act()
2093 curlx_uztoui(strlen(sshp->path)), in ssh_statemach_act()
2122 (strlen(sshp->path) > 1))) { in ssh_statemach_act()
2233 if(strlen(sshp->path) > 1) { in ssh_statemach_act()
2234 sshc->slash_pos = sshp->path + 1; /* ignore the leading '/' */ in ssh_statemach_act()
2247 infof(data, "Creating directory '%s'", sshp->path); in ssh_statemach_act()
2256 rc = libssh2_sftp_mkdir_ex(sshc->sftp_session, sshp->path, in ssh_statemach_act()
2257 curlx_uztoui(strlen(sshp->path)), in ssh_statemach_act()
2296 sshp->path, in ssh_statemach_act()
2298 strlen(sshp->path)), in ssh_statemach_act()
2314 sshp->readdir_filename = malloc(PATH_MAX + 1); in ssh_statemach_act()
2315 if(!sshp->readdir_filename) { in ssh_statemach_act()
2320 sshp->readdir_longentry = malloc(PATH_MAX + 1); in ssh_statemach_act()
2321 if(!sshp->readdir_longentry) { in ssh_statemach_act()
2322 Curl_safefree(sshp->readdir_filename); in ssh_statemach_act()
2327 Curl_dyn_init(&sshp->readdir, PATH_MAX * 2); in ssh_statemach_act()
2333 sshp->readdir_filename, in ssh_statemach_act()
2335 sshp->readdir_longentry, in ssh_statemach_act()
2337 &sshp->readdir_attrs); in ssh_statemach_act()
2343 sshp->readdir_filename[readdir_len] = '\0'; in ssh_statemach_act()
2347 sshp->readdir_filename, in ssh_statemach_act()
2359 result = Curl_dyn_add(&sshp->readdir, sshp->readdir_longentry); in ssh_statemach_act()
2362 if((sshp->readdir_attrs.flags & LIBSSH2_SFTP_ATTR_PERMISSIONS) && in ssh_statemach_act()
2363 ((sshp->readdir_attrs.permissions & LIBSSH2_SFTP_S_IFMT) == in ssh_statemach_act()
2365 Curl_dyn_init(&sshp->readdir_link, PATH_MAX); in ssh_statemach_act()
2366 result = Curl_dyn_addf(&sshp->readdir_link, "%s%s", sshp->path, in ssh_statemach_act()
2367 sshp->readdir_filename); in ssh_statemach_act()
2383 Curl_safefree(sshp->readdir_filename); in ssh_statemach_act()
2384 Curl_safefree(sshp->readdir_longentry); in ssh_statemach_act()
2395 Curl_safefree(sshp->readdir_filename); in ssh_statemach_act()
2396 Curl_safefree(sshp->readdir_longentry); in ssh_statemach_act()
2405 Curl_dyn_ptr(&sshp->readdir_link), in ssh_statemach_act()
2407 Curl_dyn_len(&sshp->readdir_link), in ssh_statemach_act()
2408 sshp->readdir_filename, in ssh_statemach_act()
2413 Curl_dyn_free(&sshp->readdir_link); in ssh_statemach_act()
2416 result = Curl_dyn_addf(&sshp->readdir, " -> %s", sshp->readdir_filename); in ssh_statemach_act()
2419 Curl_safefree(sshp->readdir_filename); in ssh_statemach_act()
2420 Curl_safefree(sshp->readdir_longentry); in ssh_statemach_act()
2430 result = Curl_dyn_addn(&sshp->readdir, "\n", 1); in ssh_statemach_act()
2433 Curl_dyn_ptr(&sshp->readdir), in ssh_statemach_act()
2434 Curl_dyn_len(&sshp->readdir)); in ssh_statemach_act()
2437 Curl_dyn_free(&sshp->readdir); in ssh_statemach_act()
2441 Curl_dyn_reset(&sshp->readdir); in ssh_statemach_act()
2453 Curl_safefree(sshp->readdir_filename); in ssh_statemach_act()
2454 Curl_safefree(sshp->readdir_longentry); in ssh_statemach_act()
2466 libssh2_sftp_open_ex(sshc->sftp_session, sshp->path, in ssh_statemach_act()
2467 curlx_uztoui(strlen(sshp->path)), in ssh_statemach_act()
2491 rc = libssh2_sftp_stat_ex(sshc->sftp_session, sshp->path, in ssh_statemach_act()
2492 curlx_uztoui(strlen(sshp->path)), in ssh_statemach_act()
2637 Curl_safefree(sshp->path); in ssh_statemach_act()
2691 result = Curl_getworkingpath(data, sshc->homedir, &sshp->path); in ssh_statemach_act()
2720 SCP_SEND(sshc->ssh_session, sshp->path, data->set.new_file_perms, in ssh_statemach_act()
2788 sshp->path, &sb); in ssh_statemach_act()
2793 sshp->path, &sb); in ssh_statemach_act()
3506 struct SSHPROTO *sshp = data->req.p.ssh; in ssh_done() local
3515 Curl_safefree(sshp->path); in ssh_done()
3516 Curl_safefree(sshp->readdir_filename); in ssh_done()
3517 Curl_safefree(sshp->readdir_longentry); in ssh_done()
3518 Curl_dyn_free(&sshp->readdir); in ssh_done()