diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-07-15 08:46:35 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-07-15 08:46:35 +0100 |
commit | 8c96e2a6d941bf5438b587c3d4a5ee1c97f9aa14 (patch) | |
tree | 3c57032ec43d1daad3889b6d4f7011bdfbd01824 /compat | |
parent | 5ffb869e1a543b264b9d94a19077d16f9832aff5 (diff) |
Implement osdep_get_name and osdep_get_cwd for AIX, from J Raynor.
Diffstat (limited to 'compat')
-rw-r--r-- | compat/forkpty-aix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/forkpty-aix.c b/compat/forkpty-aix.c index fd558eb8..6894aa44 100644 --- a/compat/forkpty-aix.c +++ b/compat/forkpty-aix.c @@ -40,6 +40,10 @@ forkpty(int *master, unused char *name, struct termios *tio, struct winsize *ws) if ((path = ttyname(*master)) == NULL) goto out; + + if (name != NULL) + strlcpy(name, path, TTY_NAME_MAX); + if ((slave = open(path, O_RDWR|O_NOCTTY)) == -1) goto out; |