Overview
| Artifact ID: | 9d36af47f29698792db7a69088a469c53b56b18e |
|---|---|
| Ticket: | 1193497fffffffffffffffffffffffffffffffff
file writable lies for certain XP directories |
| User & Date: | fvogelnew1 on 2006-03-18 06:40:23 |
Changes
- icomment:
Logged In: YES user_id=1245417 Hi, 1. I've seen you fixed both typos in tclWinTest.c, thanks. 2. I found the reason why fCmd.test spits errors for me and not for Vince. Running tcltest in debug mode it turns out that the failing tests from fCmd.c are failing because in line 654 of tclWinTest.c GetLastError() has value 1332 for me, which is ERROR_NONE_MAPPED (No mapping between account names and security IDs was done.) This happens on my system because at this point TestplatformChmod tries to find permissions for the EVERYONE SID. It fails because I'm the only user allowed to have access to the directory that was just created. In turn, this is because the directory inherited the permissions from its parent. There is no "EVERYONE" account for that directory. I can create one, but since I have a french XP, its name is "Tout le monde". So to make tclWinTest.c work for me, I must change line 505 from static const char everyoneBuf[] = "EVERYONE"; to static const char everyoneBuf[] = "Tout le monde"; Then *no* test from fCmd.test is failing anymore. So it seems that the locale comes into play while checking for permissions in TestplatformChmod. Is there any way to make this work automatically in your opinion? I mean, there should be a way to retrieve the name of the "EVERYONE" account from the locale, and set the everyoneBuf character string accordingly. Anyway, the patch is correct and the tests from fCmd.test are also correct. 3. Failing tcltest-8.4: not yet looked at it. Probably tomorrow. 4. Failing tests from winFCmd.test: only two tests are now failing (7.11 and 7.19). Here the error is not due to testchmod in this case (it succeeds). Rather, from winFCmd- 7.11 or 7.19 contents (btw, I see no difference between those two tests?): % file mkdir td1 % testchmod 000 td1 % createfile td1/tf1 tf1 couldn't open "td1/tf1": permission denied This is actually because createfile tries to open file tf1 in td1 for writing. Here is what proc createfile does first: % set file td1/tf1 td1/tf1 % set f [open $file w] couldn't open "td1/tf1": permission denied This fails because of reason 2. exhibited by Jason below: >Testcase does a chmod 000 and expects the directory to >be writable I believe the testcase should be corrected as Jason suggested: >I think the test should really be creating >another sub directory under the first one before chmod 000 >and then try to write to it. The testcases appear to be >checking that a non readable directory can be traversed >through. 5. Is there any further failing test that I'm not aware of (I mean a test that seems to fail because of Jason's patch)? Francois - login: "fvogelnew1"
- mimetype: "text/plain"
- username: "fvogelnew1"