After executing wine-config, I got a /etc/wine.conf with a null size.
I have theese lines in /etc/fstab

#/mnt/cdrom /mnt/cdrom supermount fs=iso9660,dev=/dev/cdrom,--,ro,exec,gid=503 0 0
/dev/hdc /mnt/cdrom iso9660 ro,--,gid=503 0 0

1) bad regexp: comment lines are not ignored. Suggested update:

-CDPATH=$(egrep iso9660 /etc/fstab|awk '{ print $2 }'|sed -e 's/\//\\\//g')
+CDPATH=$(egrep '^[^#].* iso9660' /etc/fstab|awk '{ print $2 }'|sed -e 's/\//\\\//g')

2) However, if the machine has several CD (for instance an IDE + a SCSI or a
loop), the replace sed command is invalid because of a "\n", and the
temp file is empty, and the wine.conf is scratched.

3) for floppy, the regexp is not better!
a mount point or a host name can be interpreted as a floppy. Example:
azt65fd0:/home /mnt/azt  nfs noauto,ro,rsize=1024,wsize=1024 0 0


--
The falsely dramatic drives out the truly dull.



Reply via email to