File Atrrib Move Error on Network Drives

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
eweinhold
Junior Member
Junior Member
Posts: 2
Joined: 2009-06-10, 10:51 UTC

File Atrrib Move Error on Network Drives

Post by *eweinhold »

TC 7.50PB5 (11.06.2009) + TC 7.50PB4
on Windows Vista Ultimate 64bit

:!: If i move (copy is ok) a File on a Linux (Qnap NAS) network drive to a network drive the file attribs are changed!

the target files gets the +a +s +h flags. :cry:

only happens on MOVE from a network drive to a network drive.
the file itself seems to be ok MD5 is the same.

as i remember the bug was not in the 7,50pb2 but i´m nut sure.

cya
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC gets the file attributes via GetFileAttributes and copies them to the target file via SetFileAttributes. Apparently the linux drive reports all attributes set...
Author of Total Commander
https://www.ghisler.com
fb_bern
Junior Member
Junior Member
Posts: 2
Joined: 2009-06-21, 19:35 UTC
Location: Switzerland

Post by *fb_bern »

I am also working with a QNAP NAS (TS-109 II), on Windows XP. While moving with TC 7.04a works without any problem, the file seems to disappear when moved with 7.50 public beta 5, as the file gets the attributes s and h.
If this is only a QNAP-Problem, I cannot understand why moving wiht TC 7.04a and copying with TC 7.50 work.
The problem appeared also with TC 7.50b1.
Krgds, FB
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

How are the files shown in the file list? Do they show up with hidden and system attributes set?
Author of Total Commander
https://www.ghisler.com
fb_bern
Junior Member
Junior Member
Posts: 2
Joined: 2009-06-21, 19:35 UTC
Location: Switzerland

Post by *fb_bern »

Couldn't send you an e-mail as I got the notice: "You must be member for at least 1 days and have posted at least 1 messages before you can send e-mails through the board!", so I put a file showing the problem on bertossa.ch/problem_tcmd75.pdf. Couldn't post the direct link as I got the notice: "Um Spam zu verringern ..".
krgds FB
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the file. I checked my code - TC calls GetFileAttributes, and after moving the file, calls SetFileAttributes. It seems that GetFileAttributes reports junk data with your NAS.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I couldn't reproduce this problem with Samba drives (Linux). Also my code has not changed except for calling Wide char functions now. But since the attributes seem to be OK in file lists, I will try to use these attributes instead of GetFileAttributes function in the next beta.

Edit: I noticed something interesting: I cannot set hidden or system attributes at all via Files - Change attributes on samba drives. Maybe it needs special configuration options of the Samba server? Any ideas?
Author of Total Commander
https://www.ghisler.com
eweinhold
Junior Member
Junior Member
Posts: 2
Joined: 2009-06-10, 10:51 UTC

fixed

Post by *eweinhold »

fixed in 7.50 RC1 :D
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply