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

Conversation

domo141
Copy link

@domo141 domo141 commented Jan 27, 2021

The _save_old() to return early if 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 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]

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]>
@domo141
Copy link
Author

domo141 commented Jan 27, 2021

See PR with same content in

zephyrproject-rtos/zephyr#31438

and related issue in

zephyrproject-rtos/zephyr#31362

for reasoning

@jackrosenthal
Copy link

Rather unfortunately, it appears the original author of Kconfiglib disappeared. The Zephyr project has been granted ownership of the PyPI package via PEP-541 request, and I'm going to do a release based on a new repository in the zephyrproject-rtos organization here: https://github.com/zephyrproject-rtos/Kconfiglib

➡️ Action required: @domo141 Are you able to re-open your pull request on the new repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants