[Pkg-alsa-devel] Bug#273092: Tweak for /alsa-base.conf: 'cat' to 'cp -L'
A Costa
A Costa <agcosta@gis.net>, 273092@bugs.debian.org
Fri Sep 24 03:49:01 UTC 2004
This is a multi-part MIME message sent by reportbug.
--===============2074979586==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: alsa-base
Version: 1.0.6a-1
Severity: wishlist
It says in the latest changelog:
- alsa-base.postinst
...
+ Use cat instead of cp in order to handle the case
where people have replaced conf files by symlinks
...and the new code shows:
% grep -n cat /var/lib/dpkg/info/alsa-base.postinst
20: cat "$old_conf_filename" > /etc/default/alsa
25: cat /usr/share/alsa-base/alsa-base.conf > /etc/default/alsa
However, for following symlinks 'cp -L' is better. The 'cp'
man page says:
-L, --dereference
always follow symbolic links
Attached is a 'diff' file. Hope this helps...
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1-686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to C)
Versions of packages alsa-base depends on:
ii alsa-utils 1.0.6-2 Advanced Linux Sound Architecture
ii debconf 1.4.36 Debian configuration management sy
ii debianutils 2.10.2 Miscellaneous utilities specific t
ii module-init-tools 3.1-pre5-7 tools for managing Linux kernel mo
ii modutils 2.4.26-1 Linux module utilities
ii psmisc 21.5-1 Utilities that use the proc filesy
-- debconf information excluded
--===============2074979586==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="alsa-base.postinst.diff"
20c20
< cat "$old_conf_filename" > /etc/default/alsa
---
> cp -L "$old_conf_filename" /etc/default/alsa
25c25
< cat /usr/share/alsa-base/alsa-base.conf > /etc/default/alsa
---
> cp -L /usr/share/alsa-base/alsa-base.conf /etc/default/alsa
--===============2074979586==--
More information about the Pkg-alsa-devel
mailing list