From b417a518c53d63109ca437afa8906d43b082dd26 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Tue, 28 Apr 2026 20:56:03 +0200 Subject: [PATCH] Apply patch: ncpfs-hg-commit-430.patch --- .../ncpfs-2.2.6-r6/ncpfs-hg-commit-430.patch | 21 +++++++++++++++++++ lib/ncplib.c | 1 + 2 files changed, 22 insertions(+) create mode 100644 .patches/ncpfs-2.2.6-r6/ncpfs-hg-commit-430.patch diff --git a/.patches/ncpfs-2.2.6-r6/ncpfs-hg-commit-430.patch b/.patches/ncpfs-2.2.6-r6/ncpfs-hg-commit-430.patch new file mode 100644 index 0000000..c65a412 --- /dev/null +++ b/.patches/ncpfs-2.2.6-r6/ncpfs-hg-commit-430.patch @@ -0,0 +1,21 @@ +changeset: 430:3fc1f5c9c744 +user: Petr Vandrovec +date: Sun Jun 05 21:25:42 2005 +0000 +files: lib/ncplib.c +description: +Set tm_isdst to -1 (unknown DST state) when converting date/time from +NetWare to Unix format. It should give better results when DST is active. + + +diff -r 776dc4052e39 -r 3fc1f5c9c744 lib/ncplib.c +--- a/lib/ncplib.c Sun Jun 05 14:36:28 2005 +0000 ++++ b/lib/ncplib.c Sun Jun 05 21:25:42 2005 +0000 +@@ -2641,6 +2641,7 @@ nw_to_ctime(struct nw_time_buffer *sourc + u_time.tm_mday = source->day; + u_time.tm_mon = source->month - 1; + u_time.tm_year = source->year; ++ u_time.tm_isdst = -1; + + if (u_time.tm_year < 80) { + u_time.tm_year += 100; + diff --git a/lib/ncplib.c b/lib/ncplib.c index 8440a10..ff0a0bc 100644 --- a/lib/ncplib.c +++ b/lib/ncplib.c @@ -2641,6 +2641,7 @@ nw_to_ctime(struct nw_time_buffer *source) u_time.tm_mday = source->day; u_time.tm_mon = source->month - 1; u_time.tm_year = source->year; + u_time.tm_isdst = -1; if (u_time.tm_year < 80) { u_time.tm_year += 100;