From 41dbb0fc00e57a103da1ee18496b00085111992d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Jan 2006 16:32:33 +0000 Subject: [PATCH] *** empty log message *** --- src/ptytty.C | 6 +++++- src/rxvtperl.xs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ptytty.C b/src/ptytty.C index 149dcede..c06e499b 100644 --- a/src/ptytty.C +++ b/src/ptytty.C @@ -78,7 +78,11 @@ get_pty (int *fd_tty, char **ttydev) #ifdef PTYS_ARE_OPENPTY char tty_name[sizeof "/dev/pts/????\0"]; - if (openpty (&pfd, fd_tty, tty_name, NULL, NULL) != -1) + rxvt_privileges(RESTORE); + int res = openpty (&pfd, fd_tty, tty_name, NULL, NULL); + rxvt_privileges(IGNORE); + + if (res != -1) { *ttydev = strdup (tty_name); return pfd; diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs index 245068d2..1ffcf70d 100644 --- a/src/rxvtperl.xs +++ b/src/rxvtperl.xs @@ -844,7 +844,7 @@ rxvt_term::selection_mark (...) } int -rxvt_term::selection_grab (int eventtime) +rxvt_term::selection_grab (int eventtime = CurrentTime) void rxvt_term::selection (SV *newtext = 0) -- 2.34.1