--- rxvt-unicode/src/ptytty.C 2005/01/11 04:44:57 1.22 +++ rxvt-unicode/src/ptytty.C 2005/02/17 15:07:48 1.23 @@ -336,6 +336,9 @@ void rxvt_ptytty::privileges (rxvt_privaction action) { + if (tty < 0) + return; + rxvt_privileges (RESTORE); if (action == SAVE) @@ -347,14 +350,12 @@ ;//next_tty_action = IGNORE; else # endif - { chown (name, getuid (), ttyconf.gid); /* fail silently */ chmod (name, ttyconf.mode); # ifdef HAVE_REVOKE revoke (name); # endif - } } else