summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-12-09 01:11:24 +0000
committerChris Wilson <chris+github@qwirx.com>2007-12-09 01:11:24 +0000
commit1641986f4959d3f998afecd6bcdc668de0a9c7f7 (patch)
treee266c13062f89aef0bfb75a2709d1c790484e67e /bin
parent63a94c9f6c0ad4c78263b030a91e9bcb5472a195 (diff)
Properly report when we failed to lock the account, so that changes
requiring a write lock don't proceed when we don't have one.
Diffstat (limited to 'bin')
-rw-r--r--bin/bbstoreaccounts/bbstoreaccounts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bbstoreaccounts/bbstoreaccounts.cpp b/bin/bbstoreaccounts/bbstoreaccounts.cpp
index 8a00e3b9..15b9fff6 100644
--- a/bin/bbstoreaccounts/bbstoreaccounts.cpp
+++ b/bin/bbstoreaccounts/bbstoreaccounts.cpp
@@ -147,7 +147,7 @@ bool GetWriteLockOnAccount(NamedLock &rLock, const std::string rRootDir, int Dis
// Couldn't lock the account -- just stop now
BOX_ERROR("Failed to lock the account, did not change limits. "
"Try again later.");
- return 1;
+ return false;
}
return gotLock;