Package: lessdisks-terminal
Severity: normal

a patch was added to lessdisks to source the host-specific configuration
file before loading modules.  unfortunately, this patch doesn't check if
that file exists before sourceing it.

thankfully, this is a non-fatal error, but produces a cryptic warning
message when the file is not present (which is usually the case for the
default unconfigured terminal "default"):

hostname is default
.: 176: Can't open /etc/lessdisks/terminals/default
Not calculating module dependencies: /lib/modules/2.4.27-2-386 is read only.

(the second line is the error message)

the attached patch should fix the issue,by simply checking for the
presence of the file before sourceing it.

alternately (or additionally) simply creating an empty configuration
file for default (/etc/lessdisks/terminals/default) would at least
partially address this issue.

live well,
  vagrant

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.6.8-2-386
Locale: LANG=es_US, LC_CTYPE=es_US (charmap=ISO-8859-1)
--- lessdisks.orig      2005-05-13 15:48:21.505181688 -0600
+++ lessdisks   2005-05-13 15:48:48.917014456 -0600
@@ -173,7 +173,7 @@
 echo "hostname=$hostname" >> $rw/etc/config
 
 # Allow per-terminal tweaks
-. "/etc/lessdisks/terminals/$hostname"
+test -f "/etc/lessdisks/terminals/$hostname" && . 
"/etc/lessdisks/terminals/$hostname"
 
 # load modules if defined
 # modules which require additional options should use commas:

Attachment: signature.asc
Description: Digital signature

Reply via email to