HardenedBSD/sbin/dmesg
Florian Smeets e1de133c2e Move the check whether the clear flag is set. This has 2 advantages
- When operating on a core file (-M) and -c is specified we don't clear
  the message buffer of the running system.
- If we don't have permission to clear the buffer print the error message
  only. That's what Linux does in this case, where this feature was ported
  from, and it ensures that the error message doesn't get lost in the noise.

Discussed with:	antoine, cognet
Approved by:	cognet
2013-06-11 17:46:32 +00:00
..
dmesg.8
dmesg.c Move the check whether the clear flag is set. This has 2 advantages 2013-06-11 17:46:32 +00:00
Makefile