mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Correct incorrect arguments to futimes
darcs-hash:20060109151740-ac50b-db7a3ccbcd4f2cc13855f13285ec2536bebcac95.gz
This commit is contained in:
parent
810d9104fc
commit
b7c551a348
1 changed files with 12 additions and 5 deletions
17
reader.c
17
reader.c
|
@ -911,15 +911,22 @@ static void reader_save_status()
|
|||
futimes is defined, but it should make the status saving stuff
|
||||
failsafe.
|
||||
*/
|
||||
struct timeval t=
|
||||
struct timeval t[]=
|
||||
{
|
||||
time(0)-1,
|
||||
0
|
||||
{
|
||||
time(0)-1,
|
||||
0
|
||||
}
|
||||
,
|
||||
{
|
||||
time(0)-1,
|
||||
0
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
futimes( 1, &t );
|
||||
futimes( 2, &t );
|
||||
futimes( 1, t );
|
||||
futimes( 2, t );
|
||||
#endif
|
||||
|
||||
fstat( 1, &prev_buff_1 );
|
||||
|
|
Loading…
Reference in a new issue