1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-08 22:22:52 +08:00

Compare commits

..

No commits in common. "b8fa2a7405e4e4ddeb35e9f6cf298944680fc52f" and "86408cd806e4b43ce63650ee648f572180504b4d" have entirely different histories.

2 changed files with 3 additions and 10 deletions

View File

@ -86,7 +86,7 @@ $(LDSO_PATHNAME): $(LOBJS)
-shared -o $@ $(LOBJS) $(SOCKET_LIBS)
$(ALL_TOOLS): $(OBJS)
$(CC) src/main.o src/common.o $(USER_LDFLAGS) $(LIBDL) -o $(PXCHAINS)
$(CC) src/main.o src/common.o $(USER_LDFLAGS) -o $(PXCHAINS)
.PHONY: all clean install install-config install-libs install-tools

View File

@ -19,11 +19,6 @@
#include <sys/types.h>
#include <sys/wait.h>
#ifdef IS_MAC
#define _DARWIN_C_SOURCE
#endif
#include <dlfcn.h>
#include "common.h"
static int usage(char **argv) {
@ -54,7 +49,7 @@ static void set_own_dir(const char *argv0) {
size_t l = strlen(argv0);
while(l && argv0[l - 1] != '/')
l--;
if(l == 0 || l >= sizeof(own_dir))
if(l == 0)
#ifdef SUPER_SECURE
memcpy(own_dir, "/dev/null/", 11);
#else
@ -116,9 +111,7 @@ int main(int argc, char *argv[]) {
// search DLL
Dl_info dli;
dladdr(own_dir, &dli);
set_own_dir(dli.dli_fname);
set_own_dir(argv[0]);
i = 0;