We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b3b678 commit 64f714bCopy full SHA for 64f714b
1 file changed
check_smart.pl
@@ -159,9 +159,10 @@
159
160
foreach my $opt_dl (@dev){
161
warn "Found $opt_dl\n" if $opt_debug;
162
- if (-b $opt_dl || -c $opt_dl || $opt_dl =~ m/^\/dev\/bus\/\d$/) {
+ if (-l $opt_dl) {
163
+ warn "$opt_dl is a symlink, skipping for security reasons\n\n" if $opt_debug;
164
+ } elsif (-b $opt_dl || -c $opt_dl || $opt_dl =~ m/^\/dev\/bus\/\d$/) {
165
$device .= $opt_dl."|";
-
166
} else {
167
warn "$opt_dl is not a valid block/character special device!\n\n" if $opt_debug;
168
}
0 commit comments