diff options
| author | John Estabrook <jestabro@vyos.io> | 2025-09-24 18:27:08 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2025-09-24 19:02:27 -0500 |
| commit | fbdf1fb8914a6b0ff3a64f4f359eaf3abd8be031 (patch) | |
| tree | 183da8152b506b1e9274c6674f33d576f1e2695d /src/tests | |
| parent | 629ff86edb9e5f68dd5849c6300a2ad97aaed4a0 (diff) | |
| download | vyos-1x-fbdf1fb8914a6b0ff3a64f4f359eaf3abd8be031.tar.gz vyos-1x-fbdf1fb8914a6b0ff3a64f4f359eaf3abd8be031.zip | |
T7709: use write_file_sync/atomic in vyos-save-config.py script
Config save is provided by the helper script in both CLI and
configsession (hence also in the http api).
Use utilities write_file_sync and write_file_atomic, in accordance with
permissions and location:
If the target is in /opt/vyatta/etc/config or /config, use
write_file_sync; if, moreover, the caller has permissions, use
write_file_atomic. Otherwise, fall back to util write_file.
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions
