On Mon, Feb 14, 2011 at 8:58 AM, Cyril Hrubis <[email protected]> wrote:
> Hi!
>> > I have checked your patch and it solves the number conversion (octal<->
>> > decimal) issues. Thank you for that.
>> > However, the file permission issues are still valid. Please find the test
>> > execution log with this mail.
>> >
>> > >But then 001 is right to exec by other which should work.
>> > > 010 is right to exec for group, which is the same on that line
>> > > 100 is right to exec for owner, which is the same again
>> >
>> > In this case, I partially agree with you. It is true in the case of binary
>> > files. However, We need 'read' and 'exec'
>> > for script files and these testcases deals with script files too.
>> >
>>
>> Hmm I see the problem now. However as a root, I could read and run files
>> with just an exec flag, at least here. I suppose the test works here by
>> some saved-id magick. I'll look deeper into this.
>>
>
> I think I've found the cause. The wait() funcion returns -1 if exec*
> hasn't succeded to run the file (and sets the status to 0). I'm not sure
> if this is POSIX compilant behaviour, I'll check on that later.
Check errno and see what it says.
Thanks,
-Garrett
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list