
PROBLEM: (77973) (PATCH ID: OSF510-009)
********
This patch fixes a problem with two routines contained in libst
library.  The routines st_obj_open and st_obj_write do not check all
of the permission types, (owner, group, world) that a file can have.
The libst routines only check for owner permissions; therefore if the
group had write permissions, the ability to change a file with these
functions would be denied.

The fix involves removing the check for file permissions and letting
the system open() or write() return an error if the command is invalid.


To reproduce an example use the strip utility in /usr/lib/cmplrs/cc :

> ls hello.o
-rwxr-xr-x   1 nobody    system     19888 Mar 28 12:15 a.out

> chmod 577 hello.o

> /usr/lib/cmplrs/cc/strip a.out
strip: a.out: Invalid file access permissions

> su 

>whoami
root

>/usr/lib/cmplrs/cc/strip a.out
strip: a.out: Invalid file access permissions

In the second case strip should have worked.



