#3761 wrong behaviour of open mode "a+"

obsolete: 8.5a6
closed-fixed
8
2007-08-15
2007-08-13
Torsten Rottmann
No

Since changing the bahaviour of the open mode "a"
(appending, write only, seeking automatically to EOF with each write)

also, and wrongly, the open mode "a+" changed to automatic
EOF seeking at each write.

Correctly it should seek to EOF _only_ at initial open, as
documented.

Discussion

    • labels: 104242 --> 25. Channel System
    • priority: 5 --> 8
    • assigned_to: vincentdarley --> dkf
     
  • Logged In: YES
    user_id=79902
    Originator: NO

    Fixed by removing the O_APPEND when a '+' is seen when processing the mode string.

     
    • status: open --> closed-fixed
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2007-12-14

    Logged In: YES
    user_id=72656
    Originator: NO

    Backported for 8.4.17