From b3dd29d1b878865102c5cb366dd3e814ce043cb9 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 6 Jun 2019 11:17:13 +0200 Subject: wdctl; read from /sys if necessary The device can be inaccessible for non-root user or busy (already used by another process). In this case it seems better to read information from /sys. Note that /sys does not provide struct watchdog_info.options, so we cannot print list of supported watchdog features. Addresses: https://github.com/karelzak/util-linux/issues/804 Signed-off-by: Karel Zak --- include/pathnames.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/pathnames.h b/include/pathnames.h index 6f091d5f0..2e1f19355 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -104,6 +104,7 @@ #define _PATH_SYS_BLOCK "/sys/block" #define _PATH_SYS_DEVBLOCK "/sys/dev/block" +#define _PATH_SYS_DEVCHAR "/sys/dev/char" #define _PATH_SYS_CLASS "/sys/class" #define _PATH_SYS_SCSI "/sys/bus/scsi" -- cgit v1.2.3-55-g7522