lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject/dev/full bug (2.0.24)?
Hi,

When I do "cat /dev/full", it prints an infinite stream of garbage to the
terminal.
I looked at the sources and found that read_full in drivers/char/mem.c
advances the file position and returns count as if it had read count
bytes. But it doesn't change the buffer.
Is this behaviour correct? It seems a bit strange to me.



--
HaDe/P



\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.013 / U:6.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site