Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CC = cc
FLAGS = -O2 -Wall
PORKBIND_CONF = porkbind.conf
FLAGS = -O2 -Wall -DPORKBIND_CONF=\"$(PORKBIND_CONF)\"
OFLAGS = -c -pthread # -DDEBUG
# You may have to add -lpthread here
LIBS = -pthread
Expand Down
4 changes: 2 additions & 2 deletions report.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ report(struct servers *llp, const char *config)
vexit("fopen");
}
}
else if (!(cf = fopen("porkbind.conf", "r")))
else if (!(cf = fopen(PORKBIND_CONF, "r")))
{
fprintf(stderr,"Unable to open: porkbind.conf!\n");
fprintf(stderr,"Unable to open: " PORKBIND_CONF "!\n");

vexit("fopen");
}
Expand Down
2 changes: 1 addition & 1 deletion usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ usage(char **argv)
printf("-*- PorkBind v1.3 by Derek Callaway (http://innu.org/~super) -*-\n\n");
printf("%s [-c file] [-s server] [-ri] domain\n", *argv);
printf("\tfile is configuration file to use\n");
printf("\t(default is porkbind.conf)\n");
printf("\t(default is " PORKBIND_CONF ")\n");
printf("\tserver is the nameserver to forward queries through\n");
printf("\t(default is /etc/resolv.conf nameservers)\n");
printf("\t-r recursively scans subdomains (i.e. sub.host.dom then host.dom)\n");
Expand Down