Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263860 - net-libs/c-client-2007e: breaks php when libnss is missed
Summary: net-libs/c-client-2007e: breaks php when libnss is missed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 13:11 UTC by Deniss Gaplevsky
Modified: 2009-03-26 22:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deniss Gaplevsky 2009-03-26 13:11:48 UTC
myusername_full() function in imap-2007e/src/osdep/unix/env_unix.c exits with fatal ("Unable to look up user name") when libnss is unavailable in system (getlogin & getpwnam return null)
this may crash php served via fastcgi in chroot

Reproducible: Always

Steps to Reproduce:
1.remove /lib/libnss*
2.use imap_lsub() from php


Actual Results:  
c-client exits with "Unable to look up user name", php crashes

Expected Results:  
proceed silently. myusername_full() is odd when c-client is used with php
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-26 22:16:50 UTC
# for file in /lib/libnss_* ; do qfile -Cv ${file} ; done
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_compat-2.8.so)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_compat.so.2)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_dns-2.8.so)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_dns.so.2)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_files-2.8.so)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_files.so.2)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_hesiod-2.8.so)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_hesiod.so.2)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_nis-2.8.so)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_nis.so.2)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_nisplus-2.8.so)
sys-libs/glibc-2.8_p20080602-r1 (/lib64/libnss_nisplus.so.2)

Why do you want to remove files which belong to the glibc package?