Created attachment 323116 [details] don't do stupid things if dirname returns a current dir - . (dot) Description of problem: sed tries to follow symlink but it does it in a wrong way. dirname() returns "." and code in follow.patch treats it as some longer dirs. Version-Release number of selected component (if applicable): fedora cvs version as of today How reproducible: Always. Note that I don't use FC but I use sed in the same version with the same patches applied. Steps to Reproduce: [arekm@carme-pld ~/test/1]$ ls -al a b lrwxrwxrwx 1 arekm users 1 lis 10 21:08 a -> b -rw-r--r-- 1 arekm users 0 lis 10 21:08 b [arekm@carme-pld ~/test/1]$ sed -i -e 's#1#2#g' a sed: ck_follow_symlink: couldn't lstat a/b: Nie jest katalogiem Actual results: Error above. Expected results: No error. Additional info:
sed-4.1.5-11.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/sed-4.1.5-11.fc10
Fixed in rawhide (sed-4.1.5-11).
sed-4.1.5-11.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
Please fix this also in F9! Thank you.
Reopening -- F9 fix still needed.
sed-4.1.5-11.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/sed-4.1.5-11.fc9
sed-4.1.5-11.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing-newkey update sed'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-2232
sed-4.1.5-11.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.