Hi! > Signed-off-by: Alexey Kodanev <[email protected]> > --- > doc/test-writing-guidelines.txt | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/doc/test-writing-guidelines.txt b/doc/test-writing-guidelines.txt > index 91edbf0..b228c80 100644 > --- a/doc/test-writing-guidelines.txt > +++ b/doc/test-writing-guidelines.txt > @@ -883,6 +883,14 @@ settings which may clear some of the bits. If your test > depends on specific > file permissions you need to 'chmod()' the file afterwards or use > SAFE_TOUCH() > that does the 'chmod()' for you. > > +3.2 access() > +~~~~~~~~~~~ > + > +If access(some_file, W_OK) is executed by root it will return success even > +if the file doesn't have write permission bits set (the same for R_OK for > +privileged user). As a workaround you can use 'open()' to check sysfs file's > +read/write permission bits. It might not work for other filesystems, but you > +have stat, lstat and fstat functions.
Pushed with minor changes to ltp git and ltp wiki, thanks. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
