[Bug 620489] New: sed --follow-symlinks broken: ck_follow_symlink: couldn't lstat o/../os-test
http://bugzilla.novell.com/show_bug.cgi?id=620489 http://bugzilla.novell.com/show_bug.cgi?id=620489#c0 Summary: sed --follow-symlinks broken: ck_follow_symlink: couldn't lstat o/../os-test Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- the following script triggers the sed bug: # rpm -q sed sed-4.1.5-133.10.x86_64 ------------------------------------------------------------------------------- #!/bin/bash rm -rf testdir mkdir -p testdir/subdir cd testdir/subdir echo foo > ../file ln -s ../file . ls -l file ls -lL file echo broken: sed -i --follow-symlinks s/foo/bar/ file cat file echo working: sed -i s/foo/bar/ file cat file ------------------------------------------------------------------------------- outputs: lrwxrwxrwx 1 root root 7 Jul 7 16:30 file -> ../file -rw-r--r-- 1 root root 4 Jul 7 16:30 file broken: ==> sed: ck_follow_symlink: couldn't lstat f/../file: No such file or directory foo working: bar -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=620489 http://bugzilla.novell.com/show_bug.cgi?id=620489#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |sbrabec@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=620489 https://bugzilla.novell.com/show_bug.cgi?id=620489#c1 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |pgajdos@novell.com InfoProvider| |cdengler@novell.com --- Comment #1 from Petr Gajdos <pgajdos@novell.com> 2010-09-13 13:21:46 UTC --- This is fixed with 4.2.1, where upstream implemented this feature (see NEWS): -------------------8<------------------------ Sed 4.2 .. * new option --follow-symlinks, available when editing a file in-place. This option may not be available on some systems (in this case, the option will *not* be a no-op; it will be completely unavailable). In the future, the option may be added as a no-op on systems without symbolic links at all, since in this case a no-op is effectively indistinguishable from a correct implementation. ------------------->8------------------------ --follow-symlinks was due ck_follow_symlink defined by sed-follow_symlinks.patch. Harald, Stanislav, Christian: do you think I should try to examine old versions to fix it there or is it enough to have this fixed in Factory? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=620489 https://bugzilla.novell.com/show_bug.cgi?id=620489#c Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|cdengler@novell.com |maint-coord@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=620489 https://bugzilla.novell.com/show_bug.cgi?id=620489#c2 Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cdengler@novell.com --- Comment #2 from Christian Dengler <cdengler@novell.com> 2010-09-14 18:22:53 UTC --- I think, Factory is enough as it is a feature, not a real bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=620489 https://bugzilla.novell.com/show_bug.cgi?id=620489#c3 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|maint-coord@suse.de | Resolution| |FIXED --- Comment #3 from Petr Gajdos <pgajdos@novell.com> 2010-09-16 08:51:23 UTC --- Ok, closing as FIXED with meaning fixed for Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com