Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
rr(R)

Homepage E-mail

Berlin, Germany,
02.09.2007, 18:46
 

File date bug in MS Network Client 3.0 (Miscellaneous)

While moving data from old ThinkPad 770 to my new Evo N620c laptop I noticed a strange thing: Whenever copying (COPY, XCOPY, VC) a file with date "xxxx-01-01" (YYYY-MM-DD) from a network share its date becomes "adjusted" to "xxxx-13-01" (Do we have a 13th month, that I didn't know off? :-D). I wrote a small test tool in Turbo Pascal, which uses GetFTime to demonstrate this behaviour.

Here's the "packed" time result:

register DX (incorrect):
FEDCBA9 8765 43210  bit
0011010 1101 00001  value
2006 years (1980+26)
        13 months (?!)
             1 day


register CX (correct):
FEDCB A98765 43210  bit
01111 001101 00110  value
15 hours
      13 minutes
             12 seconds (6*2)


It's not a Y2K problem, because it also happens with older dates. This DOS function is involved: http://www.ctyme.com/intr/rb-2992.htm

Explanations are welcome! :-) It's a little hard to debug this monster.

Steve(R)

Homepage E-mail

US,
02.09.2007, 19:55

@ rr

File date bug in MS Network Client 3.0

> While moving data from old ThinkPad 770 to my new Evo N620c laptop I
> noticed a strange thing: Whenever copying (COPY, XCOPY, VC) a file with
> date "xxxx-01-01" (YYYY-MM-DD) from a network share its date becomes
> "adjusted" to "xxxx-13-01" (Do we have a 13th month, that I didn't know
> off? :-D).

Maybe this will explain it:
http://www.geocities.com/Athens/1584/#04

rr(R)

Homepage E-mail

Berlin, Germany,
02.09.2007, 21:40

@ Steve

File date bug in MS Network Client 3.0

> Maybe this will explain it:
> http://www.geocities.com/Athens/1584/#04

You are kidding, aren't you?

Rugxulo(R)

Homepage

Usono,
02.09.2007, 21:51

@ rr

File date bug in MS Network Client 3.0

> While moving data from old ThinkPad 770 to my new Evo N620c laptop I
> noticed a strange thing: Whenever copying (COPY, XCOPY, VC) a file with
> date "xxxx-01-01" (YYYY-MM-DD) from a network share its date becomes
> "adjusted" to "xxxx-13-01" (Do we have a 13th month, that I didn't know
> off? :-D).
>
> Explanations are welcome! :-) It's a little hard to debug this monster.

I dunno, try removing any COUNTRY.SYS lines in CONFIG.SYS, reboot, and try again. What specific DOS variant are you using? Does it behave the same in FreeDOS and something else too?

---
Know your limits.h

Steve(R)

Homepage E-mail

US,
02.09.2007, 22:08

@ rr

File date bug in MS Network Client 3.0

> > Maybe this will explain it:
> > http://www.geocities.com/Athens/1584/#04
>
> You are kidding, aren't you?

Kidding, no. Only exploring. Did you buy your new machine from a Babylonian?

rr(R)

Homepage E-mail

Berlin, Germany,
02.09.2007, 22:08

@ Rugxulo

File date bug in MS Network Client 3.0

> I dunno, try removing any COUNTRY.SYS lines in CONFIG.SYS, reboot, and try

That would affect all file dates.

> again. What specific DOS variant are you using? Does it behave the same in
> FreeDOS and something else too?

I only tried MS-DOS 6.22, but different "servers" (Windows NT 4.0, 2000, XP).

rr(R)

Homepage E-mail

Berlin, Germany,
02.09.2007, 22:09

@ Steve

File date bug in MS Network Client 3.0

> Kidding, no. Only exploring. Did you buy your new machine from a
> Babylonian?

Nope. :-P

Rugxulo(R)

Homepage

Usono,
02.09.2007, 23:13

@ rr

File date bug in MS Network Client 3.0

> I only tried MS-DOS 6.22, but different "servers" (Windows NT 4.0, 2000,
> XP).

What is the latest date of the MS Network Client's .EXEs? By that, you can probably judge what the latest MS-DOS they tested on was (e.g. 1991 == 5.0).

---
Know your limits.h

rr(R)

Homepage E-mail

Berlin, Germany,
26.10.2007, 14:58

@ rr

File date bug in MS Network Client 3.0

> Explanations are welcome! :-) It's a little hard to debug this monster.

I tracked down this bug to the basic redirector. Full redirector works fine.

Back to the board
Thread view  Mix view  Order
15108 Postings in 1358 Threads, 246 registered users, 11 users online (0 registered, 11 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum