Bug 758475

Summary: rpm fails to install when current dir is unaccessible
Product: [openSUSE] openSUSE 12.1 Reporter: Bernhard Wiedemann <bwiedemann>
Component: BasesystemAssignee: Michael Schröder <mls>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.1   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bernhard Wiedemann 2012-04-23 08:51:59 UTC
rpm fails to install when current dir is unaccessible

Steps To Reproduce:
as non-root:
sudo zypper -n in sshfs ; cd /var/tmp ; mkdir mnt
sshfs localhost:/ mnt && cd mnt/tmp/
sudo rpm -U --force /tmp/gvim-7.3-22.3.1.i586.rpm 
error: Unable to open current directory: Permission denied


strace shows that rpm tries to open(".") and gets -EACCESS
but in the working case, this file descriptor does not appear to be used anyway

I also experienced a (not yet reproduced) case where some cache/index was corrupted, so every subsequent zypper call would error out after installing a package, but before running post-inst scripts.
Comment 1 Michael Schröder 2012-04-23 09:03:14 UTC
Sorry, can't fix.

*** This bug has been marked as a duplicate of bug 728856 ***