Updates for mbtask and mbnntp

This commit is contained in:
Michiel Broek
2004-04-15 21:29:59 +00:00
parent 007b7b1d41
commit 9e9fec9912
5 changed files with 39 additions and 14 deletions

View File

@@ -401,14 +401,11 @@ void add_path(char *lpath)
return;
}
rpath = calloc(PATH_MAX, sizeof(char));
mbt_realpath(lpath, rpath);
Syslog('d', "realpath %s", MBSE_SS(rpath));
rpath = calloc(PATH_MAX, sizeof(char));
mbt_realpath(lpath, rpath);
if (lstat(rpath, &sb) == 0) {
Syslog('d', "add_path(%s)", rpath);
if (S_ISDIR(sb.st_mode)) {
#if defined(__linux__)
@@ -687,9 +684,9 @@ void *disk_thread(void)
disk_run = FALSE;
Syslog('+', "Disk thread stopped");
pthread_exit(NULL);
#if defined(__NetBSD__)
return NULL;
#if defined(__NetBSD__)
return NULL;
#endif
}

View File

@@ -489,7 +489,7 @@ char *reg_fre(void)
if (reginfo[i].pid) {
if ((!strncmp(reginfo[i].prg, "mbsebbs", 7)) ||
(!strncmp(reginfo[i].prg, "mbnewusr", 8)) ||
(!strncmp(reginfo[i].prg, "mbftpd", 6)))
(!strncmp(reginfo[i].prg, "mbnntp", 6)))
users++;
if ((!strncmp(reginfo[i].prg, "mbfido", 6)) ||