Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145683362
D24079.id69633.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
415 B
Referenced Files
None
Subscribers
None
D24079.id69633.diff
View Options
Index: usr.bin/sed/main.c
===================================================================
--- usr.bin/sed/main.c
+++ usr.bin/sed/main.c
@@ -242,8 +242,7 @@
switch (script->type) {
case CU_FILE:
if (strcmp(script->s, "-") == 0) {
- if ((f = fdopen(0, "r")) == NULL)
- err(1, "%s", "stdin");
+ f = stdin;
fname = "stdin";
} else {
if ((f = fopen(script->s, "r")) == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 24, 2:08 AM (18 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28967738
Default Alt Text
D24079.id69633.diff (415 B)
Attached To
Mode
D24079: Read commands from stdin when -f - is passed to sed(1)
Attached
Detach File
Event Timeline
Log In to Comment