Package: sed
Severity: wishlist

Hi,

if sed is used to in-place edit a *symlink* it is replacing
the symlink with a regular file. Thats probably okay (other tools
like perl do it the same way) but it could cause some problems.
For example if people who are not aware of that fact use
it to edit files in /etc/apache2/conf.d or so.

Example:
p...@lisa /tmp % ln -s x y
p...@lisa /tmp % ls -ltr y
lrwxrwxrwx 1 psc psc 1  8. Dez 10:58 y -> x
p...@lisa /tmp % sed -i "abc" y
p...@lisa /tmp % ls -l y
-rw-rw-r-- 1 psc psc 0  8. Dez 10:59 y

So I suggest adding a warning to the manpage and forwarding
that upstream.

Best Regards,
Patrick



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to