Lines Matching refs:pwd
327 make_absolute(char *p, char *pwd) in make_absolute() argument
333 abs_str = path_append(pwd, p); in make_absolute()
538 process_get(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag) in process_get() argument
548 abs_src = make_absolute(abs_src, pwd); in process_get()
604 process_put(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag) in process_put() argument
615 tmp_dst = make_absolute(tmp_dst, pwd); in process_put()
661 abs_dst = make_absolute(tmp, pwd); in process_put()
1043 parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd, in parse_dispatch_command() argument
1073 err = process_get(conn, path1, path2, *pwd, pflag); in parse_dispatch_command()
1076 err = process_put(conn, path1, path2, *pwd, pflag); in parse_dispatch_command()
1079 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1080 path2 = make_absolute(path2, *pwd); in parse_dispatch_command()
1084 path2 = make_absolute(path2, *pwd); in parse_dispatch_command()
1088 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1098 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1105 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1109 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1132 xfree(*pwd); in parse_dispatch_command()
1133 *pwd = tmp; in parse_dispatch_command()
1137 do_globbed_ls(conn, *pwd, *pwd, lflag); in parse_dispatch_command()
1144 tmp = *pwd; in parse_dispatch_command()
1146 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1174 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1188 path1 = make_absolute(path1, *pwd); in parse_dispatch_command()
1219 printf(gettext("Remote working directory: %s\n"), *pwd); in parse_dispatch_command()
1288 char *pwd; in interactive_loop() local
1333 pwd = do_realpath(conn, "."); in interactive_loop()
1334 if (pwd == NULL) in interactive_loop()
1339 dir = make_absolute(dir, pwd); in interactive_loop()
1344 if (parse_dispatch_command(conn, cmd, &pwd, 1) != 0) { in interactive_loop()
1346 xfree(pwd); in interactive_loop()
1357 err = parse_dispatch_command(conn, cmd, &pwd, 1); in interactive_loop()
1359 xfree(pwd); in interactive_loop()
1450 err = parse_dispatch_command(conn, cmd, &pwd, batchmode); in interactive_loop()
1454 xfree(pwd); in interactive_loop()