April 2017

S M T W T F S
      1
2345678
910111213 1415
16171819 2021 22
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Thursday, February 11th, 2010 10:40 am

It turns out there's a bug in jlj, the program I use to compose messages in my favorite editor and submit them to LiveJournal and DreamWidth. I've finally tracked it down and written a quick fix. I feel slightly dirty, but the proper fix requires ripping out the existing band-aid on a band-aid and going back and fixing the underlying problem, which is a bit more effort than I want to go to for someone else's code at this time, as there could well be unexpected consequences.

The problem was that if you had written a post to go to a server other than LiveJournal, and you had it in your queue but it failed to post for some reason, then when you ran jlj -f to flush the queue it would attempt to log in to LiveJournal using the credentials for whatever site you had intended to post to. The symptom looked something like this:

[magus@cabinet ~]$ jlj -f
Logging in to server www.dreamwidth.org
Error Message returned:
Invalid password

Anyway, here's a patch:

Index: jlj.pl
===================================================================
--- jlj.pl  (revision 204)
+++ jlj.pl  (working copy)
@@ -431,6 +431,9 @@
        }
    }
     }
+
+    if (defined $rcfile{"server"}) {  $journalURL = $rcfile{"server"};  }
+    if (defined $rcfile{"postcgi"}) {  $submitPATH = $rcfile{"postcgi"};  }
 }
Tags: