Summary: | fclose() doesn't flush the output as it should be | ||
---|---|---|---|
Product: | glibc | Reporter: | abdulrahman mahmoud <abdulrahman.mahmoud75> |
Component: | stdio | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | drepper.fsp, fweimer |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | 2.28 | ||
Target Milestone: | --- | ||
See Also: | https://sourceware.org/bugzilla/show_bug.cgi?id=1190 | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
abdulrahman mahmoud
2022-09-22 14:51:31 UTC
This is because EOF is now sticky, see commit 2cc7bad0ae. You need to call fseek or clearerr before you can read more from a changing file. (In reply to Andreas Schwab from comment #1) > This is because EOF is now sticky, see commit 2cc7bad0ae. You need to call > fseek or clearerr before you can read more from a changing file. Thanks Andreas, i have called clearerr and it solved the issue. |