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

Commit 59b8829a authored by Deucе's avatar Deucе 👌🏾

Fix CIDs 174500 and 174471

parent 45ced2a3
...@@ -1909,11 +1909,14 @@ static BOOL send_mlsx(FILE *fp, SOCKET sock, CRYPT_SESSION sess, const char *for ...@@ -1909,11 +1909,14 @@ static BOOL send_mlsx(FILE *fp, SOCKET sock, CRYPT_SESSION sess, const char *for
{ {
va_list va; va_list va;
char *str; char *str;
int rval;
if (fp == NULL && sock == INVALID_SOCKET) if (fp == NULL && sock == INVALID_SOCKET)
return FALSE; return FALSE;
va_start(va, format); va_start(va, format);
if (vasprintf(&str, format, va) == -1) rval = vasprintf(&str, format, va);
va_end(va);
if (rval == -1)
return FALSE; return FALSE;
if (fp != NULL) if (fp != NULL)
fprintf(fp, "%s\r\n", str); fprintf(fp, "%s\r\n", str);
...@@ -1959,7 +1962,7 @@ static BOOL send_mlsx_entry(FILE *fp, SOCKET sock, CRYPT_SESSION sess, unsigned ...@@ -1959,7 +1962,7 @@ static BOOL send_mlsx_entry(FILE *fp, SOCKET sock, CRYPT_SESSION sess, unsigned
if (unique != NULL && (feats & MLSX_UNIQUE)) if (unique != NULL && (feats & MLSX_UNIQUE))
end += sprintf(end, "Unique=%s;", unique); end += sprintf(end, "Unique=%s;", unique);
if (ul != 0 && (feats & MLSX_CREATE)) { if (ul != 0 && (feats & MLSX_CREATE)) {
t = *gmtime(&modify); t = *gmtime(&ul);
end += sprintf(end, "Create=%04d%02d%02d%02d%02d%02d;", end += sprintf(end, "Create=%04d%02d%02d%02d%02d%02d;",
t.tm_year+1900, t.tm_mon+1, t.tm_mday, t.tm_year+1900, t.tm_mon+1, t.tm_mday,
t.tm_hour, t.tm_min, t.tm_sec); t.tm_hour, t.tm_min, t.tm_sec);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment