From: root Date: Tue, 3 Jan 2006 16:32:33 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=41dbb0fc00e57a103da1ee18496b00085111992d;p=dana%2Furxvt.git *** empty log message *** --- 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)