mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 04:04:48 +00:00
Merge pull request #3478 from brauner/2020-07-05/fixes
openpty: fix faulty rename
This commit is contained in:
commit
6d3b68510a
@ -32,9 +32,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#define _PATH_DEVPTMX "/dev/ptx"
|
#define _PATH_DEVPTMX "/dev/ptmx"
|
||||||
|
|
||||||
int openpty (int *aptx, int *apts, char *name, struct termios *termp,
|
int openpty (int *aptx, int *apty, char *name, struct termios *termp,
|
||||||
struct winsize *winp)
|
struct winsize *winp)
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
@ -64,7 +64,7 @@ int openpty (int *aptx, int *apts, char *name, struct termios *termp,
|
|||||||
ioctl(pty, TIOCSWINSZ, winp);
|
ioctl(pty, TIOCSWINSZ, winp);
|
||||||
|
|
||||||
*aptx = ptx;
|
*aptx = ptx;
|
||||||
*apts = pty;
|
*apty = pty;
|
||||||
if (name != NULL)
|
if (name != NULL)
|
||||||
strcpy(name, buf);
|
strcpy(name, buf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user