diff options
author | Jim Meyering <jim@meyering.net> | 2007-08-15 22:44:45 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-08-15 22:45:55 +0200 |
commit | 535a9fe5122808161398345f5ab317bd1ef6bde8 (patch) | |
tree | 833a5c6fd16059dc1fcfa56331b72857ea599dfd /NEWS | |
parent | 9ee7933b5cdf40ed4fd82b21fc521db5135446bf (diff) | |
download | coreutils-535a9fe5122808161398345f5ab317bd1ef6bde8.tar.xz |
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.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, |