Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance: Add dedicated /etc/hosts manager #1810

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from

Commits on May 7, 2024

  1. Add libcfg.la

    Initial class Cfg::File combines:
    
    a) file management design from ConfigParser::CfgFile,
    
    Extended to load files in large chunks (up to 1MB) and
    parse lines in memory instead of via fgets().
    
    b) "#line NN "filename" line changing from parseOneConfigFile(),
    
    Altered to only apply when processing FIFO pipes instead
    of allowing regular files.
    
    c) FIFO pipe alternative input from parseOneConfigFile()
    
    Extended to also perform FIFO auto-detection and enable
    pipe handling differences without special configuration by
    admin.
    
    d) prefix whitespace tolerance from ConfigParser::strtokFile()
    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    aa8cccc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3b0e44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3377bc3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9c10697 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    48d8b24 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eeac0d9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9c06252 View commit details
    Browse the repository at this point in the history
  8. Drop stat::st_size usage per reviewer request

    Apparently it can contain garbage values.
    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    8fcfb08 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    175896e View commit details
    Browse the repository at this point in the history
  10. Update src/cfg/File.h

    Co-authored-by: Alex Rousskov <[email protected]>
    yadij and rousskov committed May 7, 2024
    Configuration menu
    Copy the full SHA
    52b7cd5 View commit details
    Browse the repository at this point in the history
  11. Update src/cfg/File.h

    Co-authored-by: Alex Rousskov <[email protected]>
    yadij and rousskov committed May 7, 2024
    Configuration menu
    Copy the full SHA
    355332a View commit details
    Browse the repository at this point in the history
  12. Fix typos in documentation

    - content may not actually be configuration. It has not been validated.
     - fread(2) is used internally not read(2).
    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    cfdecbd View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a9ac7f0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2fe941f View commit details
    Browse the repository at this point in the history
  15. Move filePath processing to constructor per reviewer request

    also remove now unused stat(2) complexity.
    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    6672412 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7a284f0 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    713d406 View commit details
    Browse the repository at this point in the history
  18. Update doxygen for Cfg::File

    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    a0bd6c7 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    30cc912 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    7c88f43 View commit details
    Browse the repository at this point in the history
  21. Reviewer requested change

    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    5e5f668 View commit details
    Browse the repository at this point in the history
  22. polish error message

    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    c1a3e5a View commit details
    Browse the repository at this point in the history
  23. Update src/ConfigParser.cc

    Co-authored-by: Alex Rousskov <[email protected]>
    yadij and rousskov committed May 7, 2024
    Configuration menu
    Copy the full SHA
    c795391 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    6038816 View commit details
    Browse the repository at this point in the history
  25. Reviewer requested change

    yadij committed May 7, 2024
    Configuration menu
    Copy the full SHA
    f3f6c63 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    97252e7 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8f03367 View commit details
    Browse the repository at this point in the history