http://www.politiker-stopp.de/gfx/politiker-stopp-print.png

Benjamin Schieder

[TECHSUCKS] SED KILLS SYMLINKS

2007 April 06 | 1 comments

I'm currently working on the new ROCKLinux installer when I found this here:

root@pallas:/usr/src/installer/package/base/installer# l
total 35K
drwxr-xr-x 3 root root 768 Apr 6 08:44 .
drwxr-xr-x 274 root root 7104 Apr 6 08:40 ..
drwxr-xr-x 6 root root 240 Apr 6 08:40 .svn
-rw-r--r-- 1 root root 993 Apr 4 09:22 installer.conf
-rw-r--r-- 1 root root 1411 Apr 4 09:22 installer.desc
lrwxrwxrwx 1 root root 41 Apr 6 08:44 mod_install.sh -> ../../base/installer/stone_mod_install.sh
lrwxrwxrwx 1 root root 53 Apr 6 08:44 mod_install_filesystems.sh -> ../../base/installer/stone_mod_install_filesystems.sh
lrwxrwxrwx 1 root root 81 Apr 6 08:44 mod_install_filesystems_cryptsetup-luks.sh -> ../../blindcoder/cryptsetup-luks/stone_mod_install_filesystems_cryptsetup-luks.sh
lrwxrwxrwx 1 root root 63 Apr 6 08:44 mod_install_filesystems_e2fsprogs.sh -> ../../base/e2fsprogs/stone_mod_install_filesystems_e2fsprogs.sh
lrwxrwxrwx 1 root root 55 Apr 6 08:44 mod_install_filesystems_mdadm.sh -> ../../base/mdadm/stone_mod_install_filesystems_mdadm.sh
lrwxrwxrwx 1 root root 69 Apr 6 08:44 mod_install_filesystems_reiser4progs.sh -> ../../base/reiser4progs/stone_mod_install_filesystems_reiser4progs.sh
lrwxrwxrwx 1 root root 71 Apr 6 08:44 mod_install_filesystems_reiserfsprogs.sh -> ../../base/reiserfsprogs/stone_mod_install_filesystems_reiserfsprogs.sh
lrwxrwxrwx 1 root root 65 Apr 6 08:44 mod_install_filesystems_util-linux.sh -> ../../base/util-linux/stone_mod_install_filesystems_util-linux.sh
lrwxrwxrwx 1 root root 61 Apr 6 08:44 mod_install_filesystems_xfsprogs.sh -> ../../base/xfsprogs/stone_mod_install_filesystems_xfsprogs.sh
-rw-r--r-- 1 root root 249 Apr 4 09:22 parse-config
-rw-r--r-- 1 root root 2794 Apr 6 08:43 stone_mod_install.sh
-rw-r--r-- 1 root root 6346 Apr 6 08:39 stone_mod_install_filesystems.sh
-rw-r--r-- 1 root root 3703 Apr 4 09:22 stone_mod_setup.sh
root@pallas:/usr/src/installer/package/base/installer# sed -e 's,[MAIN],[INSTALLER],g' -i mod_install*
root@pallas:/usr/src/installer/package/base/installer# l
total 79K
drwxr-xr-x 3 root root 768 Apr 6 08:44 .
drwxr-xr-x 274 root root 7104 Apr 6 08:40 ..
drwxr-xr-x 6 root root 240 Apr 6 08:40 .svn
-rw-r--r-- 1 root root 993 Apr 4 09:22 installer.conf
-rw-r--r-- 1 root root 1411 Apr 4 09:22 installer.desc
-rw-r--r-- 1 root root 2794 Apr 6 08:44 mod_install.sh
-rw-r--r-- 1 root root 6346 Apr 6 08:44 mod_install_filesystems.sh
-rw-r--r-- 1 root root 3702 Apr 6 08:44 mod_install_filesystems_cryptsetup-luks.sh
-rw-r--r-- 1 root root 1231 Apr 6 08:44 mod_install_filesystems_e2fsprogs.sh
-rw-r--r-- 1 root root 6508 Apr 6 08:44 mod_install_filesystems_mdadm.sh
-rw-r--r-- 1 root root 1200 Apr 6 08:44 mod_install_filesystems_reiser4progs.sh
-rw-r--r-- 1 root root 1204 Apr 6 08:44 mod_install_filesystems_reiserfsprogs.sh
-rw-r--r-- 1 root root 2305 Apr 6 08:44 mod_install_filesystems_util-linux.sh
-rw-r--r-- 1 root root 1177 Apr 6 08:44 mod_install_filesystems_xfsprogs.sh
-rw-r--r-- 1 root root 249 Apr 4 09:22 parse-config
-rw-r--r-- 1 root root 2794 Apr 6 08:43 stone_mod_install.sh
-rw-r--r-- 1 root root 6346 Apr 6 08:39 stone_mod_install_filesystems.sh
-rw-r--r-- 1 root root 3703 Apr 4 09:22 stone_mod_setup.sh
root@pallas:/usr/src/installer/package/base/installer#


I mean, seriously... WTF?

UPDATE 08:46: sed even kills hardlinks this way.

EOF

Category: blog

Tags: TechSucks ROCKLinux


1 Comment

From: robert
2007-06-08 11:36:07 +0200

This actually is intended behaviour (at least for hardlinks): See http://blog.hartwork.org/?p=25

Post a comment

All comments are held for moderation; basic HTML formatting is accepted.

Name: (required)
E-mail: (required, not published)
Website: (optional)
Comment: