Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154739048
D30667.id91974.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
698 B
Referenced Files
None
Subscribers
None
D30667.id91974.diff
View Options
Index: usr.bin/tail/tail.c
===================================================================
--- usr.bin/tail/tail.c
+++ usr.bin/tail/tail.c
@@ -268,8 +268,20 @@
if (rflag)
reverse(stdin, fn, style, off, &sb);
- else
+ else if (fflag) {
+ file = (struct file_info *) malloc(sizeof(struct file_info));
+ if (!file)
+ err(1, "Couldn't malloc space for file descriptors.");
+ file->file_name = strdup(fn);
+ if (! file->file_name)
+ errx(1, "Couldn't malloc space for file name.");
+ file->fp = stdin;
+ follow(file, style, off);
+ free(file->file_name);
+ free(file);
+ } else {
forward(stdin, fn, style, off, &sb);
+ }
}
fileargs_free(fa);
exit(rval);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 8:30 AM (7 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32479833
Default Alt Text
D30667.id91974.diff (698 B)
Attached To
Mode
D30667: fix tail -f on stdin
Attached
Detach File
Event Timeline
Log In to Comment