|
Bugzilla – Full Text Bug Listing |
| Summary: | openSUSE_13.1 RC1: after installation /var/tmp/ is present in /var/tmp | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 13.1 | Reporter: | Richard Bos <richard.bos> |
| Component: | YaST2 | Assignee: | Ladislav Slezák <lslezak> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Minor | ||
| Priority: | P2 - High | CC: | aschnell |
| Version: | RC 1 | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | yast log with lines above | ||
|
Description
Richard Bos
2013-10-27 15:58:34 UTC
Same here, in the logs I found: [zypp] PathInfo.cc(assert_dir):358 mkdir /mnt/var/tmp/var 00755 [zypp] PathInfo.cc(assert_dir):358 mkdir /mnt/var/tmp/var/tmp 00755 Also matches the timestamp of the directories. Arvin: Please attach the full log, or at least a reasonable large part showing the context. As zypp is a library, I can't tell who's doing the call. Created attachment 573804 [details]
yast log with lines above
@Ladislav: Looks like it happens in yast-pkg-bindings
[Source_Download.cc]
YCPValue PkgFunctions::SourceProvideFileCommon(...)
...
// create the tmpdir in <_download_area>/var/tmp
zypp::filesystem::TmpDir tmpdir(
_download_area / zypp::filesystem::TmpDir::defaultLocation());
The log says:
2014-01-08 06:57:24 <1> linux(2440)
[Pkg] Source_Installation.cc(SourceMoveDownloadArea):286
Moving download area of all sources to /mnt/var/tmp
2014-01-08 06:57:24 <1> linux(2440)
[zypp] MediaHandler.cc(setAttachPrefix):324
Setting user defined attach point prefix: /mnt/var/tmp
I guess 'usually' your _download_area is unset, that's why you append TmpDir::defaultLocation (/var/tmp) so it fits your needs.
But in case you redirect the download area to a tmp dir (/mnt/var/tmp), appending TmpDir::defaultLocation is superfluous.
I guess it should be like this:
zypp::filesystem::TmpDir tmpdir(
_download_area ? _download_area
: zypp::filesystem::TmpDir::defaultLocation());
Or initialize '_download_area = zypp::filesystem::TmpDir::defaultLocation()' so _download_area will always point to a valid tmp dir:
zypp::filesystem::TmpDir tmpdir( _download_area );
Michael, thanks for the explanation and the proposed fix! Fixed in yast2-pkg-bindings-3.1.3 (openSUSE-13.2) Thanks for the fix |