mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Disble futimes() calls in hopes of fixing https://github.com/fish-shell/fish-shell/issues/122
This should keep sudo from thinking that the tty has changed as part of its tty_tickets feature.
This commit is contained in:
parent
6dd0013a5d
commit
1d54bff385
1 changed files with 5 additions and 0 deletions
|
@ -327,6 +327,10 @@ static int room_for_usec(struct stat *st)
|
|||
static void s_save_status( screen_t *s)
|
||||
{
|
||||
|
||||
// PCA Let's not do this futimes stuff, because sudo dumbly uses the
|
||||
// tty's ctime as part of its tty_tickets feature
|
||||
// Disabling this should fix https://github.com/fish-shell/fish-shell/issues/122
|
||||
#if 0
|
||||
/*
|
||||
This futimes call tries to trick the system into using st_mtime
|
||||
as a tampering flag. This of course only works on systems where
|
||||
|
@ -354,6 +358,7 @@ static void s_save_status( screen_t *s)
|
|||
*/
|
||||
futimes( 1, t );
|
||||
futimes( 2, t );
|
||||
#endif
|
||||
|
||||
fstat( 1, &s->prev_buff_1 );
|
||||
fstat( 2, &s->prev_buff_2 );
|
||||
|
|
Loading…
Reference in a new issue