Skip to contentSkip to conversation

lseek on /proc/kmsg

DISCUSSION Bodo Eggert 1 participant 1 message Mar 23, 2005 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Review

Quoted 2 lines · Jan Engelhardt
(quoted diff) +2 -0
+static loff_t kmsg_seek(struct file *filp, loff_t offset, int origin) {
+    if(origin != 2 /* SEEK_END */ || offset < 0) { return -ESPIPE; }
                                              ^^^

"Allow" seeking past the end of the buffer?