Page MenuHomeFreeBSD

D57741.1796498253.diff
No OneTemporary

Authored By
Unknown
Size
689 B
Referenced Files
None
Subscribers
None

D57741.1796498253.diff

diff --git a/bin/cat/cat.c b/bin/cat/cat.c
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -259,9 +259,13 @@
if (fd == STDIN_FILENO)
cook_cat(stdin);
else {
- fp = fdopen(fd, "r");
+ if ((fp = fdopen(fd, "r")) == NULL) {
+ close(fd);
+ err(1, "%s", filename);
+ }
cook_cat(fp);
fclose(fp);
+ }
}
#endif
} else {

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 5, 7:17 PM (17 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42239112
Default Alt Text
D57741.1796498253.diff (689 B)

Event Timeline