Small fixes for mbfile
This commit is contained in:
@@ -101,9 +101,9 @@ void Delete(int UnDel, int Area, char *File)
|
||||
}
|
||||
if (!UnDel && !fdb.Deleted) {
|
||||
fdb.Deleted = TRUE;
|
||||
Syslog('+', "Marked file %s in area %d for undeletion", File, Area);
|
||||
Syslog('+', "Marked file %s in area %d for deletion", File, Area);
|
||||
if (!do_quiet)
|
||||
printf("Marked file %s in area %d for undeletion\n", File, Area);
|
||||
printf("Marked file %s in area %d for deletion\n", File, Area);
|
||||
rc = TRUE;
|
||||
}
|
||||
if (rc) {
|
||||
|
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
|
||||
if (argc > (i + 1)) {
|
||||
i++;
|
||||
Area = atoi(argv[i]);
|
||||
cmd = xstrcat(cmd, argv[i]);
|
||||
cmd = xstrcat(cmd, (char *)" ");
|
||||
cmd = xstrcat(cmd, argv[i]);
|
||||
if (argc > (i + 1)) {
|
||||
i++;
|
||||
|
@@ -180,9 +180,9 @@ void ImportFiles(int Area)
|
||||
/*
|
||||
* Create DOS 8.3 filename
|
||||
*/
|
||||
strcpy(temp, fdb.LName);
|
||||
name_mangle(temp);
|
||||
strcpy(fdb.Name, temp);
|
||||
strcpy(temp2, fdb.LName);
|
||||
name_mangle(temp2);
|
||||
strcpy(fdb.Name, temp2);
|
||||
|
||||
if (do_annon)
|
||||
fdb.Announced = TRUE;
|
||||
|
@@ -548,6 +548,7 @@ void Index(void)
|
||||
}
|
||||
}
|
||||
fclose(fp);
|
||||
chmod(temp, 0644);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -609,6 +610,8 @@ void Index(void)
|
||||
if ((j = execute(CFG.www_convert, linebuf, outbuf,
|
||||
(char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null"))) {
|
||||
Syslog('+', "Failed to create thumbnail for %s, rc=% d", file.LName, j);
|
||||
} else {
|
||||
chmod(outbuf, 0644);
|
||||
}
|
||||
}
|
||||
fprintf(fa, "<TD align=center valign=top><A HREF=\"%s/%s%s/%s\">",
|
||||
@@ -650,6 +653,7 @@ void Index(void)
|
||||
}
|
||||
closepage(fa, area.Path, inArea, aTotal);
|
||||
fclose(fp);
|
||||
chmod(temp, 0644);
|
||||
|
||||
/*
|
||||
* If the time before there were more files in this area then now,
|
||||
|
@@ -314,6 +314,7 @@ int AddFile(struct FILERecord fdb, int Area, char *DestPath, char *FromPath)
|
||||
WriteError("Can't move file in place");
|
||||
return FALSE;
|
||||
}
|
||||
chmod(DestPath, 0644);
|
||||
|
||||
temp1 = calloc(PATH_MAX, sizeof(char));
|
||||
temp2 = calloc(PATH_MAX, sizeof(char));
|
||||
|
Reference in New Issue
Block a user