Apply patch: ncpfs-hg-commit-443.patch
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user