* Backwards compatibility.
This commit is contained in:
parent
d95b68fde3
commit
cdee317419
|
@ -288,11 +288,16 @@ static void performOp(unsigned int clientVersion,
|
||||||
}
|
}
|
||||||
|
|
||||||
case wopAddToStore: {
|
case wopAddToStore: {
|
||||||
/* !!! uberquick hack */
|
|
||||||
string baseName = readString(from);
|
string baseName = readString(from);
|
||||||
readInt(from); /* obsolete; was `fixed' flag */
|
bool fixed = readInt(from) == 1; /* obsolete */
|
||||||
bool recursive = readInt(from) == 1;
|
bool recursive = readInt(from) == 1;
|
||||||
HashType hashAlgo = parseHashType(readString(from));
|
string s = readString(from);
|
||||||
|
/* Compatibility hack. */
|
||||||
|
if (!fixed) {
|
||||||
|
s = "sha256";
|
||||||
|
recursive = true;
|
||||||
|
}
|
||||||
|
HashType hashAlgo = parseHashType(s);
|
||||||
|
|
||||||
Path tmp = createTempDir();
|
Path tmp = createTempDir();
|
||||||
AutoDelete delTmp(tmp);
|
AutoDelete delTmp(tmp);
|
||||||
|
|
Loading…
Reference in a new issue