Skip to content
Permalink
Browse files

campaignd: Fix bug causing new uploads to replace server.cfg on disk

This was only temporary and would be later reverted by the periodic
server.cfg commit, but it's still a grave thing and resulted in add-on
packs not actually being written to the correct files, resulting in
missing or outdated contents for uploads performed since commit
28c5179 was pushed to mainline master.

The cause is a trivial copy-paste error that shouldn't have happened.
  • Loading branch information...
shikadiqueen committed Sep 18, 2017
1 parent cee61b8 commit 8380845b902a7fe9dd898861bc14b50f4f2f4a7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/campaign_server/campaign_server.cpp
@@ -761,7 +761,7 @@ void server::handle_upload(const server::request& req)
add_license(data);

{
filesystem::atomic_commit campaign_file(cfg_file_);
filesystem::atomic_commit campaign_file(filename);
config_writer writer(*campaign_file.ostream(), true, compress_level_);
writer.write(data);
campaign_file.commit();

0 comments on commit 8380845

Please sign in to comment.
You can’t perform that action at this time.