Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (3)
......@@ -204,7 +204,7 @@
"\1/\1w\1hSearching current library @ELLIPSIS@\r\n\1q" 166 SearchingAllDirs
"\1w\1hSearching all libraries @ELLIPSIS@\r\n\1q" 167 SearchingAllLibs
"\r\n\1w\1h%u Files Listed.\r\n" 168 NFilesListed
"\r\n\1w\1hEmpty directory.\r\n" 169 EmptyDir
"\1?\1w\1hEmpty directory.\r\n" 169 EmptyDir
"\1?\1cSearching for files "\ 170 NScanHdr
"uploaded after\1\\ \1h%s\1n\r\n"
"\1?You can't remove files.\r\n" 171 R_RemoveFiles
......@@ -244,7 +244,7 @@
"\r\n\1hThe sysop has been notified.\1n\r\n"
"\r\n%s kilobytes free\r\n\r\n" 201 DiskNBytesFree
"\1_\1y\1hFilename: \1n" 202 Filename
"\r\n\1r\1hBad filename.\r\n" 203 BadFilename
"\1/\1r\1hBad filename: '%s'\r\n" 203 BadFilename
"Upload '%s' to Sysop directory" 204 UploadToSysopDirQ
"Upload '%s' to User directory" 205 UploadToUserDirQ
"Upload '%s' to %s\1\\ %s" 206 UploadToCurDirQ
......
......@@ -336,7 +336,7 @@ function remove_file(fname)
{
if (file_remove(fname))
log(LOG_INFO, "Deleted file: " + fname);
else
else if(file_exists(fname))
log(LOG_ERROR, "Error " + errno + " (" + errno_str + ") deleting file: " + fname);
}
......
......@@ -48,6 +48,7 @@ while(!file.from && !js.terminated) {
file.from = prompt("Uploader");
}
file.cost = file_size(dir.path + file.name);
print("Adding " + file.name + " to " + filebase.file);
if(filebase.add(file))
print(format("File (%s) added successfully to: ", file.name) + code);
......