sed -i .... afile if using sed replace function when if afile link another file { ln -s xfile afile }, afile re-creating as regular file , and link lost...
GNU sed 4.2.1 does the same. Busybox sed should be compatible to that. Closing the bug.