Apply patch: ncpfs-hg-commit-443.patch

This commit is contained in:
Mario Fetka
2026-04-28 20:56:04 +02:00
parent a3dffd8dd5
commit c1f9ff00aa
3 changed files with 180 additions and 26 deletions

View File

@@ -33,6 +33,7 @@
#include <string.h>
#include <ncp/nwcalls.h>
#include <ncp/nwfse.h>
#include <ncp/nwnet.h>
#include "private/libintl.h"
#define _(X) gettext(X)
@@ -175,8 +176,14 @@ main(int argc, char **argv)
{
time_t t;
int err2;
nuint32 sec;
err2 = ncp_get_file_server_time(conn, &t);
err2 = __NWGetFileServerUTCTime(conn, &sec, NULL, NULL, NULL, NULL, NULL, NULL);
if (err2) {
err2 = ncp_get_file_server_time(conn, &t);
} else {
t = sec;
}
if (err2) {
fprintf(stderr, "%s: %s\n", _("could not get server time"),
strnwerror(err2));