Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bad residue

  • Loading branch information...
commit 9d84fb56b8ed8fd4b4f7105f8d2da3878f6979cf 1 parent 4bef0fe
BuzzTroll authored
View
3  lantorrent/bin/make_lt_server.sh
@@ -17,6 +17,7 @@ fi
# so that we pick up the ini file
export LANTORRENT_HOME=$pypath
+who=`whoami`
delim=""
ports_str=""
rm -f $LANTORRENT_HOME/tests/xinetd.d/*
@@ -40,7 +41,7 @@ do
echo "s/@PORT@/$PORT/"
echo "s/@SERVICENAME@/$SERVNAME/"
echo "s^@LANTORRENT_HOME@^$LANTORRENT_HOME^"
- sed -e "s/@PORT@/$PORT/" -e "s/@SERVICENAME@/$SERVNAME/" -e "s^@LANTORRENT_HOME@^$LANTORRENT_HOME^" $LANTORRENT_HOME/etc/lantorrent.inet.in | tee $LANTORRENT_HOME/tests/xinetd.d/$SERVNAME
+ sed -e "s/@WHO@/$who/" -e "s/@PORT@/$PORT/" -e "s/@SERVICENAME@/$SERVNAME/" -e "s^@LANTORRENT_HOME@^$LANTORRENT_HOME^" $LANTORRENT_HOME/etc/lantorrent.inet.in | tee $LANTORRENT_HOME/tests/xinetd.d/$SERVNAME
done
View
2  lantorrent/etc/lantorrent.inet.in
@@ -10,7 +10,7 @@ service @SERVICENAME@
disable = no
socket_type = stream
protocol = tcp
- user = bresnaha
+ user = @WHO@
wait = no
port = @PORT@
server = @LANTORRENT_HOME@/bin/lt.sh
View
2  lantorrent/pylantorrent/ltConnection.py
@@ -80,7 +80,7 @@ def send(self, data):
self.valid = False
self.ex = LTException(506, "%s:%d %s" % (self.host, self.port, str(ex)), self.host, self.port, self.file, self.rid)
pylantorrent.log(logging.WARNING, "send error " + str(self.ex), traceback)
- j = vex.get_json()
+ j = self.ex.get_json()
s = json.dumps(j)
self.output_printer.print_results(s)
Please sign in to comment.
Something went wrong with that request. Please try again.