Skip to content

Use proper temporary filenames when retrieving the config from device#7

Open
mhei wants to merge 1 commit into
Vertexcom-dev:mainfrom
chargebyte:use-proper-tmpfile-on-cfg-save
Open

Use proper temporary filenames when retrieving the config from device#7
mhei wants to merge 1 commit into
Vertexcom-dev:mainfrom
chargebyte:use-proper-tmpfile-on-cfg-save

Conversation

@mhei
Copy link
Copy Markdown
Contributor

@mhei mhei commented May 29, 2026

Using hard-coded filename is unsafe, especially in a system with multiple interfaces when e.g. during bootup the configuration is retrieved and checked. It might happens that two instances uses the same filename simulatanously.
Prevent this by using proper temp filenames.

Using hard-coded filename is unsafe, especially in a system with
multiple interfaces when e.g. during bootup the configuration is
retrieved and checked. It might happens that two instances uses
the same filename simulatanously.
Prevent this by using proper temp filenames.

Signed-off-by: Michael Heimpold <michael.heimpold@chargebyte.com>
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.

1 participant