Hi! > >> > 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.
That seems to be feature, when running under strace (to avoid users gaining root rights). -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ 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
