Show
Ignore:
Timestamp:
06/05/09 17:17:29 (5 years ago)
Author:
khali
Message:

From Yuriy Kaminskiy:

Most filesystems (in particular - reiserfs, jfs, xfs, nfs); maybe,

some legacy installation of ext2/3 too) always return dirent->dt_type =
DT_UNKNOWN, so libsensors fails to parse /etc/sensors.d.

Also, symlink (DT_LNK) can point to directory, or FIFO/socket/device

(very bad!) - current check insufficient anyways.

Fixed by always using stat() to check what each entry is, rather than
relying on dirent->dt_type.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5726 r5730  
    55  isadump: Use geteuid instead of getuid so that setuid bit works 
    66  isaset: Use geteuid instead of getuid so that setuid bit works 
     7  libsensors: Don't rely on dirent->dt_type being set 
    78  Makefile: Include generated source files in dependency checking 
    89            Make it possible to skip building of the static library