[Git-commits] [grml/grml-hwinfo] d116a7: sysdump: ignore files inside /sys/kernel/debug to ...

Michael Prokop mika at grml.org
Fri Jun 9 22:14:04 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-hwinfo
  Commit: d116a7a066ded40f839b9d24d181c6e6cc933fad
      https://github.com/grml/grml-hwinfo/commit/d116a7a066ded40f839b9d24d181c6e6cc933fad
  Author: Michael Prokop <mika at grml.org>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
    M sysdump

  Log Message:
  -----------
  sysdump: ignore files inside /sys/kernel/debug to avoid hanging

There are several files inside /sys/kernel/debug which aren't
safe for cat-ing, like for example
/sys/kernel/debug/hid/0003:80EE:0021.0001/events So ignore all
files inside /sys/kernel/debug to avoid a hanging sysdump
process.

While at it avoid read on already closed file-handle and redirect
error message to stderr if a file can't be opened/read.

Closes grml/grml#55




More information about the Git-commits mailing list