Loading ...
Sorry, an error occurred while loading the content.

Re: [jasspa] Problem editing file with multiple links

Expand Messages
  • Jonathan B. Bayer
    Hello Steven, This file wasn t a symbolic link, it was a regular link. With a regular link, the same inode is referenced by multiple directory entries. By
    Message 1 of 4 , Oct 18, 2009
    • 0 Attachment
      Hello Steven,

      This file wasn't a symbolic link, it was a regular link. With a
      regular link, the same inode is referenced by multiple directory
      entries. By first renaming the file, the other directory entries are
      now pointing to the renamed file. This breaks the intended linkage.



      Ubuntu 9.04




      JBB

      Friday, October 16, 2009, 2:04:07 PM, you wrote:

      SP> Problem here is that copy often changes the properties of the file, from
      SP> date create & last modified to file permissions, and this properties
      SP> would then be permanently lost as the newly created file of the same
      SP> name would not inherit these properties (and rightly so). So ME
      SP> currently does the right thing.

      SP> But the question I have is what platform are you using? Every unix
      SP> system I have used would not modify a symbolic link if the file it
      SP> pointed to was renamed, it would simply leave it dangling, this looks
      SP> more like a broken OS, trying to be too smart, than an ME bug!

      SP> Steve

      SP> Jonathan B. Bayer wrote:
      >> Hello Jasspa,
      >>
      >> I just ran into a situation where I had to edit a shell script with
      >> multiple links. The edit worked, but when it saved the file, it broke
      >> the links. The original link was renamed with a tilde at the end, and
      >> it saved the edited file as a new file.
      >>
      >> This is a problem, how can I stop this from happening. I'd like to
      >> change it so that it copies the original, and then saves the file over
      >> the original.
      >>
      >>
      >> Thanks in advance
      >>
      >>
      >> JBB
      >> ---
      >> Jonathan B. Bayer
      >>
      >> mailto:jbayer@...
      >>
      >>
      >>
      >> ------------------------------------
      >>
      >> __________________________________________________________________________
      >>
      >> This is an unmoderated list, but new members are moderated to ensure that there are no spam users. JASSPA is not responsible for the content of
      >> any material posted to this list.
      >>
      >> To un-subscribe, send a mail message to
      >>
      >> mailto:jasspa-unsubscribe@yahoogroups.com
      >>
      >> or visit http://groups.yahoo.com/group/jasspa and
      >> modify your account settings manually.
      >>
      >>
      >> Yahoo! Groups Links
      >>
      >>
      >>
      >>
      >>



      SP> ------------------------------------

      SP> __________________________________________________________________________

      SP> This is an unmoderated list, but new members are moderated to
      SP> ensure that there are no spam users. JASSPA is not responsible for the content of
      SP> any material posted to this list.

      SP> To un-subscribe, send a mail message to

      SP> mailto:jasspa-unsubscribe@yahoogroups.com

      SP> or visit http://groups.yahoo.com/group/jasspa and
      SP> modify your account settings manually.


      SP> Yahoo! Groups Links







      JBB
      ---
      Jonathan B. Bayer

      mailto:jbayer@...
    Your message has been successfully submitted and would be delivered to recipients shortly.