projects
/
tor-status
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix parsing of the hashed password
[tor-status]
/
src
/
status-area-applet-tor.vala
diff --git
a/src/status-area-applet-tor.vala
b/src/status-area-applet-tor.vala
index
83225b2
..
8bb41fa
100644
(file)
--- a/
src/status-area-applet-tor.vala
+++ b/
src/status-area-applet-tor.vala
@@
-223,7
+223,7
@@
class TorStatusMenuItem : HD.StatusMenuItem {
tor_hash_argv[2] = password;
string hash;
Process.spawn_sync ("/tmp", tor_hash_argv, null, 0, null, out hash);
tor_hash_argv[2] = password;
string hash;
Process.spawn_sync ("/tmp", tor_hash_argv, null, 0, null, out hash);
- hash = hash.str ("16:").replace ("\n", "");
+ hash = hash.str ("\n16:").offset (1).replace ("\n", "");
if (hash == null) {
Hildon.Banner.show_information (null, null,
if (hash == null) {
Hildon.Banner.show_information (null, null,