$Log$
+ Revision 626.17 2004/11/02 22:59:20 ajc
+ * setup.c: fixed an incorrect variable name that was causing inittab
+ twiddling to malfunction.
+
Revision 626.16 2004/11/02 02:47:10 ajc
* Easy Install: put the log directly in /tmp instead of in the build
directory so it doesn't get deleted on a failed install.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/*
* Locate the name of an inittab entry for a specific program
*/
-void locate_init_entry(char *init_entry, char *program) {
+void locate_init_entry(char *init_entry, char *looking_for) {
FILE *infp;
char buf[SIZ];
int have_entry = 0;
- char looking_for[SIZ];
char entry[SIZ];
char prog[SIZ];
void shutdown_citserver(void) {
char looking_for[SIZ];
- snprintf(looking_for, sizeof looking_for, "%s/citserver", BBSDIR);
+ snprintf(looking_for, sizeof looking_for, "%s/citserver", setup_directory);
locate_init_entry(citserver_init_entry, looking_for);
if (strlen(citserver_init_entry) > 0) {
set_init_entry(citserver_init_entry, "off");
char entryname[5];
/* Determine the fully qualified path name of citserver */
- snprintf(looking_for, sizeof looking_for, "%s/citserver", BBSDIR);
+ snprintf(looking_for, sizeof looking_for, "%s/citserver", setup_directory);
locate_init_entry(citserver_init_entry, looking_for);
/* If there's already an entry, then we have nothing left to do. */