$Log$
+Revision 653.16 2005/08/02 03:40:15 ajc
+* Removed instances of hard-coded CTDLDIR; this breaks -h
+
Revision 653.15 2005/08/02 03:05:31 ajc
* Added in Wilfried Goesgens' debian/ build directory.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
if (strlen(targ)==0) {
snprintf(targ, sizeof targ,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
}
snprintf(pathname, sizeof pathname,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
}
snprintf(outfile, sizeof outfile,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif
snprintf(buf, sizeof buf,
"cd "
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
snprintf(pathname, sizeof pathname,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
}
snprintf(pathname, sizeof pathname,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
which_floor = extract_int(cmdbuf, 1);
snprintf(pathname, sizeof pathname,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
}
snprintf(pathname, sizeof pathname,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
}
snprintf(CC->upl_path, sizeof CC->upl_path,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
CC->room.QRdirname, CC->upl_file);
snprintf(CC->upl_filedir, sizeof CC->upl_filedir,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
if (CC->user.axlevel >= 6) {
snprintf(CC->upl_path, sizeof CC->upl_path,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
if (!strcasecmp(basenm, "_userpic_")) {
snprintf(CC->upl_path, sizeof CC->upl_path,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
which_floor = extract_int(cmdbuf, 2);
snprintf(CC->upl_path, sizeof CC->upl_path,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
CC->dl_is_net = 0;
snprintf(buf, sizeof buf,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif
snprintf(pathname, sizeof pathname,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif
snprintf(CC->upl_path, sizeof CC->upl_path,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif
if (smr.len > 0) {
snprintf(submit_filename, sizeof submit_filename,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif
}
cprintf("%d %s|"
#ifndef HAVE_DATA_DIR
- CTDLDIR
+ "."
#else
DATA_DIR
#endif
snprintf(buf, sizeof buf, "ls "
#ifndef HAVE_DATA_DIR
- CTDLDIR
+ "."
#else
DATA_DIR
#endif
snprintf(buf, sizeof buf,
#ifndef HAVE_DATA_DIR
- CTDLDIR
+ "."
#else
DATA_DIR
#endif
if (strcasecmp(flnm, "filedir")) {
snprintf(buf, sizeof buf,
#ifndef HAVE_DATA_DIR
- CTDLDIR
+ "."
#else
DATA_DIR
#endif
if (CC->room.QRflags & QR_DIRECTORY) {
snprintf(buf, sizeof buf,
#ifndef HAVE_DATA_DIR
- CTDLDIR
+ "."
#else
DATA_DIR
#endif
/* write it to the spool file */
snprintf(filename, sizeof filename,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
}
snprintf(filename, sizeof filename,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
dp = opendir(
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
if ((strcmp(d->d_name, ".")) && (strcmp(d->d_name, ".."))) {
snprintf(filename, sizeof filename,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
closedir(dp);
}
-#ifdef ___DISABLED___
/*
* Delete any files in the outbound queue that were intended
* to be sent to nodes which no longer exist.
dp = opendir(
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
continue;
snprintf(filename, sizeof filename,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
closedir(dp);
}
-#endif /* ___DISABLED___ */
/*
/* TODO: make move inline. forking is verry expensive. */
snprintf(buf, sizeof buf, "mv %s "
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
snprintf(sfname, sizeof sfname,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif /* HAVE_SPOOL_DIR */
bytes_written, remote_nodename);
lprintf(CTDL_DEBUG, "<%s\n", buf);
if (buf[0] == '2') {
+ lprintf(CTDL_DEBUG, "Removing <%s>\n", sfname);
unlink(sfname);
}
}
if (poll == 0) {
snprintf(spoolfile, sizeof spoolfile,
#ifndef HAVE_SPOOL_DIR
- CTDLDIR
+ "."
#else
SPOOL_DIR
#endif
*/
void create_spool_dirs(void) {
#ifndef HAVE_SPOOL_DIR
- mkdir(CTDLDIR "/network", 0700);
- mkdir(CTDLDIR "/network/systems", 0700);
- mkdir(CTDLDIR "/network/spoolin", 0700);
- mkdir(CTDLDIR "/network/spoolout", 0700);
+ mkdir("./network", 0700);
+ mkdir("./network/systems", 0700);
+ mkdir("./network/spoolin", 0700);
+ mkdir("./network/spoolout", 0700);
#else
mkdir(SPOOL_DIR "/network", 0700);
mkdir(SPOOL_DIR "/network/systems", 0700);
free_filter_list(filterlist);
filterlist = NULL;
- /* network_purge_spoolout(); */
+ network_purge_spoolout();
lprintf(CTDL_DEBUG, "network: queue run completed\n");
/* remove the user's bio file */
snprintf(filename, sizeof filename,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif
/* remove the user's picture */
snprintf(filename, sizeof filename,
#ifndef HAVE_DATA_DIR
- "." /* FIXME: should here be CTDLDIR ? */
+ "."
#else
DATA_DIR
#endif