summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-03-04 11:33:46 -0600
committerGitHub <noreply@github.com>2024-03-04 11:33:46 -0600
commitfd96c62776ec533743bc315dcaa5183e599e5590 (patch)
treef1c65f7998a2fd8604bc2e91524c1303c72c5b2e
parent0cadf4e24f077b08e7a429b080d4329c3f9c61e0 (diff)
parent6b6065b56287cb7436a079761f6e3ffc6c945d98 (diff)
downloadvyatta-cfg-equuleus.tar.gz
vyatta-cfg-equuleus.zip
Merge pull request #75 from sever-sever/T60881.3.81.3.7equuleus
T6088: Fix saving confiugration and replacing fsync with sync
-rwxr-xr-xscripts/vyatta-save-config.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl
index 9f1ec5c..2a607f2 100755
--- a/scripts/vyatta-save-config.pl
+++ b/scripts/vyatta-save-config.pl
@@ -22,7 +22,7 @@
use strict;
use lib "/opt/vyatta/share/perl5";
use Vyatta::ConfigOutput;
-use File::Sync qw(fsync);
+use File::Sync qw(sync);
use FileHandle;
use IO::Prompt;
use Vyatta::Misc qw(get_short_config_path);
@@ -118,8 +118,8 @@ close($show_fd);
print $version_str;
select STDOUT;
-fsync $save;
close $save;
+sync();
if ($mode eq 'url') {
system("python3 -c 'from vyos.remote import upload; upload(\"$url_tmp_file\", \"$save_file\")'");