#8321: Symbolic link is followed when replacing a file! ---------------------------------------+---------------------------- Reporter: Pete | Owner: korli Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/StyledEdit | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ---------------------------------------+---------------------------- Comment (by Pete): Replying to [comment:4 bonefish]: > I find the ticket perfectly valid. If the user agrees to replace "foo", the application should replace "foo", not the file it refers to. The phrasing in the alert could be more accurate -- referring to "symbolic link 'foo'" in this case -- and ideally it could even offer an option to replace the file referred to by the symbolic link. And yes, this should be fixed in all applications. OK -- glad that you think it not quite right, too. I don't see it as the application's job to fix it, though. Shouldn't this be the FilePanel's responsibility? Having the alert give a choice of replacing either the link itself or the file it references might be the best route. > Pe works correctly, BTW (using save as new + remove old + rename, IIRC). Hadn't tried that (don't have it on my BeOS) but when I looked it has a glitch or two too! Try this: create, say, a short text "testfile" in one folder, and create a link to it in another. Then drag that ''link'' onto Pe. Do a bit of editing and click on 'Save'... It not only follows the link to change the original file, it sets the type of that file to be a symbolic link too!! The same happens with 'Save As...', unless you notice that the specified file type in the popup-menu is "Symbolic Link" and change it to something sensible; then things behave as I'd hope: the link gets replaced with the edited file. -- Ticket URL: <http://dev.haiku-os.org/ticket/8321#comment:5> Haiku <http://dev.haiku-os.org> Haiku - the operating system.