Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/libbb/fclose_nonstdin.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/libbb/fclose_nonstdin.c
r2725 r3621 19 19 /* Some more paranoid applets want ferror() check too */ 20 20 int r = ferror(f); /* NB: does NOT set errno! */ 21 if (r) errno = EIO; /* so we'll help it */ 21 if (r) 22 errno = EIO; /* so we'll help it */ 22 23 if (f != stdin) 23 24 return (r | fclose(f)); /* fclose does set errno on error */
Note:
See TracChangeset
for help on using the changeset viewer.