diff options
Diffstat (limited to 'libio/fileops.c')
-rw-r--r-- | libio/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c index f5b256998d..cf47c915a7 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -432,7 +432,7 @@ _IO_new_file_attach (fp, fd) if (_IO_SEEKOFF (fp, (_IO_off64_t)0, _IO_seek_cur, _IOS_INPUT|_IOS_OUTPUT) == _IO_pos_BAD && errno != ESPIPE) return NULL; - errno = save_errno; + __set_errno (save_errno); return fp; } INTDEF2(_IO_new_file_attach, _IO_file_attach) |