Bug 758475 - rpm fails to install when current dir is unaccessible
Summary: rpm fails to install when current dir is unaccessible
Status: VERIFIED DUPLICATE of bug 728856
Alias: None
Product: openSUSE 12.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All openSUSE 12.1
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-23 08:51 UTC by Bernhard Wiedemann
Modified: 2012-04-23 09:03 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***