Bug 73894 - Does not work when installed with an umask of 077 and messes filesystem
Summary: Does not work when installed with an umask of 077 and messes filesystem
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-12 23:50 UTC by Enrico Scholz
Modified: 2007-04-18 16:46 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-12-19 09:39:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2002-09-12 23:50:45 UTC
Description of Problem:

Because some php-modules-packages are containing unowned directories,
this directories will be created with the current umask. When having
restrictive administrator settings (umask 077), they will not work.

Another problem occurs when removing packages. Then orphaned directories
are remaining.

| $ rpm -qf /usr/lib/php4 /usr/lib/php4/imap.so 
| file /usr/lib/php4 is not owned by any package
| php-imap-4.2.2-11


IMO the best solution is to add

| %dir %{_libdir}/php4

to the %files-section of the main php-package.


Version-Release number of selected component (if applicable):

php-imap-4.2.2-11
php-ldap-4.2.2-11
php-mysql-4.2.2-11
php-odbc-4.2.2-11
php-pgsql-4.2.2-11
php-snmp-4.2.2-11


How Reproducible:

100%


Steps to Reproduce:
1. umask 077
2. make sure that php* is uninstalled completely (rm -rf
   /usr/lib/php4)
3. rpm -U php-4.2.2-11.i386.rpm php-pgsql-4.2.2-11.i386.rpm
4. ls -l /usr/lib/php4
5. start php script using PSQL
6. rpm -e php php-pgsql

Actual Results:

| drwx------    2 root     root         4096 Sep 13 01:32 /usr/lib/php4

at 4; script can not find libraries at 5 and /usr/lib/php4 still
exists after 6.

Comment 1 Joe Orton 2002-12-19 09:39:06 UTC
Thanks for the report; fixed in php-4.2.2-11.


Note You need to log in before you can comment on or make changes to this bug.