Menu

#276 Edit symlinked files

Undefined
fixed
Alpha
None
Bug_Report
2017-02-17
2015-12-20
No

Editing a symlinked file in codeblocks removes the symlink and saves a new file with the same name and new content.
I think this behaviour is wrong, not expected or at least there should be an option to disable it.

This happens on Linux, I don't know what happens with symlinks on Windows.

Discussion

  • Teodor Petrov

    Teodor Petrov - 2016-01-19
    • Type: Undefined --> Bug_Report
     
  • Morten MacFly

    Morten MacFly - 2016-02-07
    • status: open --> accepted
     
  • Morten MacFly

    Morten MacFly - 2016-02-07

    Note oBFusCATed: The proper way is to detect that the file is a link and then disable the temp+move mechanism we're using.

    Additioal note: This has to work on all pltforms reliable. Remember that on Windows you can have soft/hardlinks, too (softlinks might be something to ignore because it would not work with the compiler anyways).

     
  • Alpha

    Alpha - 2017-01-01

    Is it of concern to handle the case where a (malicious) program swaps/changes target for the symlink just before C::B saves to it?

     
    • Teodor Petrov

      Teodor Petrov - 2017-01-02

      I don't think so.

       
  • Alpha

    Alpha - 2017-02-17
    • status: accepted --> fixed
    • assigned_to: Alpha
     
  • Alpha

    Alpha - 2017-02-17

    Fixed in [r11008]

     

    Related

    Commit: [r11008]

  • Teodor Petrov

    Teodor Petrov - 2017-02-17

    @Alpha: Can you update the comment before/in the function to describe what is going on?

     
    • Alpha

      Alpha - 2017-02-21

      Done in [r11013]

       

      Related

      Commit: [r11013]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.