| Summary: | online upgrade fails if a download directory not owned by root is selected | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | José Jorge <lists.jjorge> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | doktor5000, fri, mageia, marcello.anni, thierry.vignaud |
| Version: | 1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | mgaonline | CVE: | |
| Status comment: | |||
| Bug Depends on: | 6114 | ||
| Bug Blocks: | |||
|
Description
José Jorge
2012-05-25 14:40:12 CEST
what said ll /home/jose/Té* ?
Manuel Hiebel
2012-05-27 13:48:35 CEST
Depends on:
(none) =>
6114 (In reply to comment #1) > what said ll /home/jose/Té* ? ll nothing, but ls -al : drwxr-xr-x 6 jose jose 12288 Jun 1 20:50 ./ drwxr-xr-x 158 jose jose 12288 Jun 3 20:13 ../ well this are the normal permissions for a users folder... news?
Manuel Hiebel
2012-06-22 13:45:03 CEST
Component:
Installer =>
RPM Packages This messages cames from urpmi, when it fails to write in that directory which should be possible according to what you posted CC:
(none) =>
thierry.vignaud Unless UTF-8 got mangled somewhere. The message is unclear bug the real reason is that urpmi we refuse to download in a directory not owned by root for security reason. Summary:
online upgrade fails if a directory is selected =>
online upgrade fails if a download directory not owned by root is selected Fixed in git Status:
ASSIGNED =>
RESOLVED (In reply to comment #7) > The message is unclear bug the real reason is that urpmi we refuse to download > in a directory not owned by root for security reason. exaclty see https://bugs.mageia.org/show_bug.cgi?id=6114 can you backport the fix in mga2 at least for not have again the bug on the >mga3 upgrade ? A backport is intended. (In reply to comment #11) > A backport is intended. I can test it right now if it is backported to MGA1 : I will migrate a system to MGA2. i'm too should be available to test it, thierry please let me know. I have a (small) problem with this commit: it does not work if /var/cache/urpmi is a link e.g. to /home/var/cache/urpmi. In this case, the applet says: "Vous devez spécifier un répertoire appartenant à l'administrateur système" Of course, the all folders in the hierarchy /home/var/cache/urpmi belong to root, but the applet is looking at /var/cache/urpmi, and the following code (line 401 of mgaapplet): my $ok = -d $temp_dir && ! -l $temp_dir && ((stat($temp_dir))[4] == 0); prevents that the temporary dir be a link. Why are the links "forbidden" by the "! -l"? Should not we change this to: -l $temp_dir && $temp_dir = readlink($temp_dir); my $ok = -d $temp_dir && ((stat($temp_dir))[4] == 0); What do you think Thierry? CC:
(none) =>
mageia Does it work at all even for normal folder in home for you? I now entered: Bug 28724 - mgaapplet upgrade: asks where to first download all packages but dont respect neither location nor "all first" CC:
(none) =>
fri |