Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-07-09
14:26 • Ticket [3613671fff] file owned undocumented Windows defects status still C... artifact: 77a280afe9 user: apnadkarni
14:26 • Closed ticket [3613671fff]. artifact: 2aa4b453ea user: apnadkarni
11:17 • Ticket [3613671fff]: 3 changes artifact: a42266dd59 user: apnadkarni
11:13
Bugfix [3613671]. file owned implementation for Windows. check-in: 4fe9800f92 user: ashok tags: core-8-6-branch
2013-09-13
21:04 • Ticket [3613671fff] file owned undocumented Windows defects status still O... artifact: 7838edec97 user: JKU
2013-09-09
09:50 • Ticket [3613671fff]: 5 changes artifact: 1aebc7b932 user: dkf
2013-08-16
12:37 • Ticket [3613671fff]: 6 changes artifact: 107aadb4c0 user: JKU
2013-06-10
08:26
Start of work on a proper fix for [3613671]; just structural refactoring first. check-in: 8f572309d2 user: dkf tags: bug-3613671
2013-05-22
17:39 • Ticket [3613671fff] file owned undocumented Windows defects status still O... artifact: f55518fd9b user: dkf
17:39 • Ticket [3613671fff]: 4 changes artifact: 93116ba546 user: dkf
2013-05-21
18:59 • New ticket [3613671fff]. artifact: 641743aba4 user: dgp

[file owned] undocumented Windows defects

Closed / Fixed3613671fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 10 years ago
Descriptionplain2013-05-21 18:59:34
[file owned] is useless on Windows, always returning true.

This is noted in comments, but not documented.
dkfplain2013-05-22 17:39:21
Documented in PORTABILITY section.

Given that we really ought to have enough information to be actually able to answer [file owned] correctly, this bug remains open. Not sure who to assign it to (I know I don't know how to fix it!)
dkf Ticket [3613671fff]: 1 change [History diff]2013-05-22 17:39:22
JKUwiki2013-08-16 12:37:00

I see the following problems:

  • Windows >= Vista: A file created by an Administrator always have the owner for the Administrators group. (The process has to be invoked with "As Administrator").
  • On remote filesystems the owner might be reported as Administrators, but we have to check if we are a member of this group on the remote system.

dkfhtml2013-09-09 09:50:59

Nothing there that I have any idea how to fix (it's presumably due to issues in the platform-specific parts and not in the generic layer or the documentation); assigning to submitter.

JKUwiki2013-09-13 21:04:29

How windows calculates the effective permissions: http://technet.microsoft.com/en-us/library/cc772184.aspx#sectionSection1

apnadkarniplain2016-07-09 11:17:13
Implemented in check-in [4fe9800f92]. Owner check is made using the actual owner SID stored on the file system versus the current process SID. Ownership based on group membership is NOT checked as (besides being much more complex) I don't even think that is the correct thing to do.
apnadkarni Closed ticket [3613671fff]. [History diff]2016-07-09 14:26:31
apnadkarni Ticket [3613671fff]: 4 changes [History diff]2016-07-09 14:26:44
Log in (anonymous is fine) to add a comment.