mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
parent
2a1e8d7c30
commit
cf4a34bbc7
@ -382,7 +382,8 @@ follow(file_info_t *files, enum STYLE style, off_t off)
|
||||
sb2.st_dev != file->st.st_dev ||
|
||||
sb2.st_nlink == 0) {
|
||||
show(file);
|
||||
fclose(file->fp);
|
||||
if (file->fp != NULL)
|
||||
fclose(file->fp);
|
||||
file->fp = ftmp;
|
||||
memcpy(&file->st, &sb2,
|
||||
sizeof(struct stat));
|
||||
|
Loading…
Reference in New Issue
Block a user