Directories not recognized with SMB NTFS
Closed547419ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-04-23 05:37:22
With a SMB mount of a NTFS structure, file isdirectory /some/arbitrary/path is not recognized as a directory, but instead, a file. To work around this, you must compare the directory/file in question with the mode "040777" to test if it's a directory or file.
nemisis Ticket [547419ffff]: 1 change
[History diff]2002-04-23 12:38:28
nemisis Ticket [547419ffff]: 2 changes
[History diff]2002-04-23 12:43:10
nemisis Ticket [547419ffff]: 1 change
[History diff]2002-04-25 06:45:21
nemisis Ticket [547419ffff]: 1 change
[History diff]2002-04-25 06:45:42
nemisis Ticket [547419ffff]: 1 change
[History diff]2002-04-25 06:46:06
vincentdarleyplain2002-04-25 15:47:08
Logged In: YES user_id=32170 I'm glad this is no longer assigned to me, since I can't do much about it (no system to test, no skills to apply ;-). I think if Matt could submit a patch with the relevant changes we could review that, and get any relevant fix into the core more quickly. Note that 'file isdirectory' uses Tcl_FSStat, so this bug report, if correct, implies that 'file stat' and 'file type' also return the wrong results (and probably other operations...)
nemisisplain2002-04-26 03:55:02
Logged In: YES user_id=248090 Very very strange, the box was brought down and restarted. Afterwards, with remounting the drives, their (NTFS remote mounts) modes changed for directory from the 040777 mode to 16877, which raises a bit of skepticism in exactly what happened to produce the other mode. As I am lead to believe at this point and time, it is not a bug in Tcl's file system handling, but rather in Samba itself (which was used to do the remote mounts). I do believe the fact nothing was changed in the system's integrity prior to the reboot and after the reboot will haunt me for some time :).
Log in (anonymous is fine) to add a comment.