-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: urcd action: commit revision: path_from: revision_from: e97fb15f5727bf170e5ebbbd8f1a7babb2994d3c: path_to: revision_to:
commit e97fb15f5727bf170e5ebbbd8f1a7babb2994d3c Author: root <root@localhost.(none)> Date: Mon Jul 14 05:17:54 2014 +0000 [URC] removed BC code for env/URCHUB. if you haven't changed your paths for urcd and urc2sd to the hub sockets yet you're way behind. deleted the old contrib/d3v11/nameless junk. diff --git a/contrib/d3v11/nameless/Makefile b/contrib/d3v11/nameless/Makefile deleted file mode 100644 index ed84fc76b766ec58a5f244ff52683da348f35fc4..0000000000000000000000000000000000000000 --- a/contrib/d3v11/nameless/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -nameless: - gcc stdin.c -o stdin diff --git a/contrib/d3v11/nameless/README b/contrib/d3v11/nameless/README deleted file mode 100644 index 328833f3934df1ac94e05c632ec5833aee0771bf..0000000000000000000000000000000000000000 --- a/contrib/d3v11/nameless/README +++ /dev/null @@ -1,2 +0,0 @@ -make -ln -s stdin /service/urcd/stdin diff --git a/contrib/d3v11/nameless/stdin.c b/contrib/d3v11/nameless/stdin.c deleted file mode 100644 index 0f932a61719edf675c2a59e53519709e7ebbd1ef..0000000000000000000000000000000000000000 --- a/contrib/d3v11/nameless/stdin.c +++ /dev/null @@ -1,40 +0,0 @@ -#include <stdlib.h> -#include <string.h> -#include <poll.h> - -#define NICK_CMD "NICK nameless\n" - -int main() { - - int n; - int FNC = 0; - unsigned char buffer[1024] = {0}; - const int NICK_CMD_LEN = strlen(NICK_CMD); - - struct pollfd fds[1]; - fds[0].fd = 0; - fds[0].events = POLLIN | POLLPRI; - - while (1) { - - poll(fds,1,-1); - - for (n=0;n<1024;++n) - { - if (read(0,buffer+n,1)<1) exit(1); - if (buffer[n] == '\n') break; - } if (buffer[n] != '\n') exit(2); - ++n; - - if ( (!FNC) && (n>=6) - && ( - ((!memcmp(buffer,"NICK ",5)) || (!memcmp(buffer,"nick ",5))) - ) - ) { - if (write(1,NICK_CMD,NICK_CMD_LEN)<0) exit(3); - ++FNC; - } - else if (write(1,buffer,n)<0) exit(4); - - } -} diff --git a/src/urc2sd.pyx b/src/urc2sd.pyx
--- a/src/urc2sd.pyx +++ b/src/urc2sd.pyx @@ -42,7 +42,6 @@ re_SERVER_PRIVMSG_NOTICE_TOPIC = re.compile('^:['+RE+']+![~:#'+RE+'.]+@[:#'+RE+' HELP = int(open('env/HELP','rb').read().split('\n')[0]) if os.path.exists('env/HELP') else 1 LIMIT = float(open('env/LIMIT','rb').read().split('\n')[0]) if os.path.exists('env/LIMIT') else 1 -URCHUB = open('env/URCHUB','rb').read().split('\n')[0] if os.path.exists('env/URCHUB') else str() INVITE = int(open('env/INVITE','rb').read().split('\n')[0]) if os.path.exists('env/INVITE') else 0 COLOUR = int(open('env/COLOUR','rb').read().split('\n')[0]) if os.path.exists('env/COLOUR') else 0 UNICODE = int(open('env/UNICODE','rb').read().split('\n')[0]) if os.path.exists('env/UNICODE') else 0 @@ -122,7 +121,7 @@ devurandomfd = os.open("/dev/urandom",os.O_RDONLY) def randombytes(n): return try_read(devurandomfd,n) uid, gid = pwd.getpwnam('urcd')[2:4] -os.chdir(URCHUB) if URCHUB else os.chdir(sys.argv[1]) +os.chdir(sys.argv[1]) os.chroot(os.getcwd()) os.setgroups(list()) os.setgid(gid) diff --git a/src/urcd.pyx b/src/urcd.pyx
--- a/src/urcd.pyx +++ b/src/urcd.pyx @@ -52,7 +52,6 @@ URCDB = open('env/URCDB','rb').read().split('\n')[0] if os.path.exists('env/URCD IDLE = int(open('env/IDLE','rb').read().split('\n')[0]) if os.path.exists('env/IDLE') else 2048 FLOOD = int(open('env/FLOOD','rb').read().split('\n')[0]) if os.path.exists('env/FLOOD') else 8 LIMIT = float(open('env/LIMIT','rb').read().split('\n')[0]) if os.path.exists('env/LIMIT') else 1 -URCHUB = open('env/URCHUB','rb').read().split('\n')[0] if os.path.exists('env/URCHUB') else str() COLOUR = int(open('env/COLOUR','rb').read().split('\n')[0]) if os.path.exists('env/COLOUR') else 0 UNICODE = int(open('env/UNICODE','rb').read().split('\n')[0]) if os.path.exists('env/UNICODE') else 0 NICKLEN = int(open('env/NICKLEN','rb').read().split('\n')[0]) if os.path.exists('env/NICKLEN') else 32 @@ -205,7 +204,7 @@ if os.access('stdout',os.X_OK): else: wr = 1 uid, gid = pwd.getpwnam('urcd')[2:4] -os.chdir(URCHUB) if URCHUB else os.chdir(sys.argv[1]) +os.chdir(sys.argv[1]) os.chroot(os.getcwd()) os.setgroups(list()) os.setgid(gid)
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 16:30:09 2024