|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1215 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1215.
Report 1215 Actions
Problem Report Number 1215 Submitter's Classification Specification problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0417 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification CAPIbase/frealpath 5 Problem Summary PG4U.00050 This test may fail because it does not return EACCES when read or search permission is denied for for a component of file_name. Problem Text
This test may fail because it does not return EACCES when
read or search permission is denied for for a component of file_name.
This is inconsistent with getcwd() which ... "may fail if:
EACCES: Read or search permission was denied for a component of the
pathname." Like many implementations, we use common routines to
implement routines.... like routines deal with filenames.
There doesn't seem to be any rationale for failing on the realpath()
syscall and not failing on the getcwd() syscall.
It would be nice to have this consistency to enable some code reuse
on our platform.Test Output
400|1917 5 1 19:21:10|IC Start
200|1917 1 19:21:10|TP Start
520|1917 1 85590048 1 1|SPEC1170TESTSUITE CASE 5
520|1917 1 85590048 1 2|EACCES in errno and return a null pointer on a c
520|1917 1 85590048 1 3|char *realpath(const char *file_name,
520|1917 1 85590048 1 4|char *resolved_name) when read permission is den
520|1917 1 85590048 1 5|for a component of file_name.
520|1917 1 121503766 1 1|PREP: Save the current working directory
520|1917 1 121503766 1 2|PREP: Make a directory
520|1917 1 121503766 1 3|PREP: Make a subdirectory
520|1917 1 121503766 1 4|PREP: Create a regular file in subdirectory
520|1917 1 121503766 1 5|PREP: Change working directory to subdirectory
520|1917 1 121503766 1 6|PREP: Remove read permission from parent
520|1917 1 121503766 1 7|TEST: realpath for regular file fails with EACC
520|1917 1 121503766 1 8|ERROR: realpath succeeded, expected return of N
520|1917 1 121503766 1 9|CLEANUP: Restore read permission and return to
220|1917 1 1 19:21:19|FAIL
410|1917 5 1 19:21:19|IC End
80|1935 0 19:21:19|TC EndReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We recommend this request be refused.
We do not believe this is a grey area in the spec.
It also seems possible to us to obtain the consistency the submitter
is searching for by having the getcwd() call fail under the same
circumstances. this is allowed by the spec.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 1215
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority