cdrdao not reading config file
This machine is running testing, but same thing happened with stable.
I can't see to get cdrdao to use its config file.
I've got both a system wide and local file:
$ cat /etc/cdrdao.conf
write_device: "0,0,0"
write_driver: "generic-mmc"
$ cat ~/.cdrdao
write_device: "0,0,0"
write_driver: "generic-mmc"
$ cdrdao read-toc --fast-toc foo.toc
Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
SCSI interface library - (C) Joerg Schilling
Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
ERROR: Cannot open "/dev/cdrecorder": No such file or directory
ERROR: Cannot open SCSI device '/dev/cdrecorder':
ERROR: Please use option '--device bus,id,lun', e.g. --device 0,6,0
ERROR: Cannot setup device /dev/cdrecorder.
But it works if I manually add the options:
cdrdao read-toc --device 0,0,0 --driver generic-mmc foo.toc
strace does show it reading those files:
open("/etc/defaults/cdrdao", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/home/moseley/.cdrdao", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=51, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40014000
read(3, "write_device: \"0,0,0\"\nwrite_driv"..., 4096) = 51
read(3, "", 4096) = 0
close(3) = 0
--
Bill Moseley
mailto:moseley@hank.org
Reply to: