# # # patch "cmd_netsync.cc" # from [352b0957e54298dfa1de185aaa125f105204c762] # to [962aeb6b15df6f5cea78cb7d7f569f4f93ef8259] # ============================================================ --- cmd_netsync.cc 352b0957e54298dfa1de185aaa125f105204c762 +++ cmd_netsync.cc 962aeb6b15df6f5cea78cb7d7f569f4f93ef8259 @@ -244,6 +244,13 @@ CMD_AUTOMATE_NO_STDIO(remote_stdio, app.opts.non_interactive = true; + if (app.opts.dbname.empty()) + { + W(F("No database given; assuming ':memory:' database. This means that we can't\n" + "verify the server key, because we have no record of what it should be.")); + app.opts.dbname_is_memory = true; + } + database db(app); key_store keys(app); project_t project(db); @@ -368,6 +375,13 @@ CMD_AUTOMATE_NO_STDIO(remote, E(args.size() >= 1, origin::user, F("wrong argument count")); + if (app.opts.dbname.empty()) + { + W(F("No database given; assuming ':memory:' database. This means that we can't\n" + "verify the server key, because we have no record of what it should be.")); + app.opts.dbname_is_memory = true; + } + database db(app); key_store keys(app); project_t project(db);