#4 Determine data dir. from an envitoment variable

open-rejected
nobody
None
5
2010-01-25
2009-06-21
No

For any application compilied to binary with camomile, currently, the datadir
is fixed.

With this patch, the datadir will be detected at runtime via environment
variables (by default), and if nonexistent, will fall back on
CamomileDefaultSettings.

Discussion

  • Yamagata Yoriyuki

    • status: open --> open-rejected
     
  • Yamagata Yoriyuki

    Camomile 0.7.x supports initialization by Functor. Use this.

    Using environment variables has security issue. Data stored in datadir are simply unmarshalled therefore if a malicious user can control the location of datadir, he can cause anything, including buffer overflow.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks