mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Uppity: configurable cwd for session.
All my instincts expect the shell subprocesses to start off in ~, so it's confusing if they start off in some random PuTTY checkout directory. So now we default to $HOME, and if I really do want the latter, I can use the new config option to reselect '.'.
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
typedef struct AuthPolicy AuthPolicy;
|
||||
|
||||
struct SshServerConfig {
|
||||
const char *session_starting_dir;
|
||||
|
||||
RSAKey *rsa_kex_key;
|
||||
|
||||
/*
|
||||
@ -102,7 +104,7 @@ Channel *sesschan_new(SshChannel *c, LogContext *logctx,
|
||||
|
||||
Backend *pty_backend_create(
|
||||
Seat *seat, LogContext *logctx, Conf *conf, char **argv, const char *cmd,
|
||||
struct ssh_ttymodes ttymodes, bool pipes_instead_of_pty,
|
||||
struct ssh_ttymodes ttymodes, bool pipes_instead_of_pty, const char *dir,
|
||||
const char *const *env_vars_to_unset);
|
||||
int pty_backend_exit_signum(Backend *be);
|
||||
ptrlen pty_backend_exit_signame(Backend *be, char **aux_msg);
|
||||
|
Reference in New Issue
Block a user