]> arthur.barton.de Git - bup.git/commit
Calling bup-server with "-r host:" fails to activate dumb mode.
authorOei, Yung-Chin <yungchin@yungchin.nl>
Tue, 18 Sep 2012 13:13:13 +0000 (14:13 +0100)
committerRob Browning <rlb@defaultvalue.org>
Mon, 24 Sep 2012 20:04:03 +0000 (15:04 -0500)
commit269c7904793d464dc1b0aef2d7c0ffd426ca0789
tree0e6fe75010c3bf0813d8c7be01e41b0afa48d67d
parent4875d0cb42eb66c3ac7f0297e0cb7aca6d4f3975
Calling bup-server with "-r host:" fails to activate dumb mode.

When no remote directory is supplied to the -r option, no set-dir
command is sent to the server. This has the weird side effect that the
server actually does not check whether it needs to be in "smart" or
"dumb" mode.

By forcing all commands to make that verification, we'll ensure that the
server mode is correct.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/server-cmd.py