]>
Commit | Line | Data |
---|---|---|
646c1035 PS |
1 | From: Jeff Johnson <n3npq@mac.com> |
2 | Subject: Re: rpm-4.4.4 fails to install symlinks marked with unsupported %lang. | |
3 | Date: Tue, 21 Feb 2006 13:35:22 -0500 | |
4 | To: pluto@pld-linux.org | |
5 | ||
6 | While refactoring symlink processing out of lib/fsm.c in order to | |
7 | handle tar (and other non-cpio) headers, the payload positioning | |
8 | broke with (in this case) a locale colored symlink that was supposed | |
9 | to not be installed. | |
10 | ||
11 | --- rpm/lib/fsm.c 20 Feb 2006 23:48:00 -0000 2.112.2.18 | |
12 | +++ rpm/lib/fsm.c 21 Feb 2006 18:31:11 -0000 | |
13 | @@ -1778,8 +1778,11 @@ | |
14 | break; | |
15 | case FSM_PROCESS: | |
16 | if (fsm->postpone) { | |
17 | - if (fsm->goal == FSM_PKGINSTALL) | |
18 | - rc = fsmNext(fsm, FSM_EAT); | |
19 | + if (fsm->goal == FSM_PKGINSTALL) { | |
20 | + /* XXX Skip over file body, archive headers already done. */ | |
21 | + if (S_ISREG(st->st_mode)) | |
22 | + rc = fsmNext(fsm, FSM_EAT); | |
23 | + } | |
24 | break; | |
25 | } | |
26 | ||
27 | ||
28 | Fix will be in rpm-4.4.5. | |
29 | ||
30 | Thanks for the report. | |
31 | ||
32 | 73 de Jeff |