From: SourceForge.net <no...@so...> - 2004-04-06 09:00:00
|
Bugs item #929892, was opened at 2004-04-05 19:15 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=929892&group_id=10894 Category: 16. Commands A-H Group: current: 8.4.6 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: tauvan (tauvan) Assigned to: Donal K. Fellows (dkf) Summary: cmdAH-18.2 FAILED executable Initial Comment: machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5 as root result : 0 expected : 1 code: set gorpfile [makeFile abcde gorp.file] file executable $gorpfile attributes of a makeFile: -group staff -owner steven -permissions 00644 -group staff -owner root -permissions 00644 question: should makeFile as local be -group staff -owner steven -permissions 00664 support info: neither are executable open $fullName w denied as local if created as root Even if a process has appropriate privileges and indicates success for X_OK, the file may not actually have execute permission bits set. so I'm not sure what the test is asking just that you can stop the error message by test cmdAH-18.2 ..... {testchmod notRoot} {...} 0 test cmdAH-18.2.1 ... {testchmod root} {...} 1 ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2004-04-06 09:59 Message: Logged In: YES user_id=79902 Hmm. access(..., X_OK) is defined as not being required to return useful information when running as root. OTOH, it isn't required to say that every file may be executed by root either; it depends on the OS, the filesystem, and how the FS was mounted. Only safe thing to do is to mark the test as being notRoot; there's no cross-platform way to check when root that doesn't go through exactly what we want to test in this test, which would lead to a worthless circular test. Fixed in HEAD and 8.4 branch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=929892&group_id=10894 |