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

kconfig: kconfiglib.py: Backup files only #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 27, 2021

  1. kconfig: kconfiglib.py: Backup files only

    The _save_old() to return early if <filename> is not file (or symlink
    to a file).
    
    This is simplest alternative to avoid attempt to rename /dev/null
    (which could succeed).
    
    This also keeps fifos (perhaps nonexistent potential usage but
    this is nicer).
    
    If <filename> were directory or socket, after shutil.copyfile(),
    writing to the file (by caller, _write_config()), would fail.
    
    Co-authored-by: Marti Bolivar <[email protected]>
    Signed-off-by: Tomi Ollila <[email protected]>
    Tomi Ollila and mbolivar-nordic committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    d5c5e84 View commit details
    Browse the repository at this point in the history