From 535a9fe5122808161398345f5ab317bd1ef6bde8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 15 Aug 2007 22:44:45 +0200 Subject: od --skip (-j) works even on files in /proc, when the kernel lies * src/od.c (skip): Don't let kernel misinformation (nonempty files in /proc with stat.st_size == 0) make "od -j N" misbehave. Patch by Paul Eggert. * NEWS: Document this work-around. * tests/misc/od-zero-len: New file, test for the above. --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 13d3402f1..91149ebb6 100644 --- a/NEWS +++ b/NEWS @@ -98,6 +98,10 @@ GNU coreutils NEWS -*- outline -*- ln=target attribute) would mistakenly output the string "target" before the name of each symlink. [introduced in coreutils-6.0] + od's --skip (-j) option now works even when the kernel says that a + nonempty regular file has stat.st_size = 0. This happens at least + with files in /proc and linux-2.6.22. + "od -j L FILE" had a bug: when the number of bytes to skip, L, is exactly the same as the length of FILE, od would skip *no* bytes. When the number of bytes to skip is exactly the sum of the lengths of the first N files, -- cgit v1.2.3-70-g09d2