| 161 | |
| 162 | |
| 163 | bool ExtractSymlink(CommandData *Cmd,ComprDataIO &DataIO,Archive &Arc,const wchar *LinkName) |
| 164 | { |
| 165 | #if defined(SAVE_LINKS) && defined(_UNIX) |
| 166 | // For RAR 3.x archives we process links even in test mode to skip link data. |
| 167 | if (Arc.Format==RARFMT15) |
| 168 | return ExtractUnixLink30(Cmd,DataIO,Arc,LinkName); |
| 169 | if (Arc.Format==RARFMT50) |
| 170 | return ExtractUnixLink50(Cmd,LinkName,&Arc.FileHead); |
| 171 | #elif defined _WIN_ALL |
| 172 | // RAR 5.0 archives store link information in file header, so there is |
| 173 | // no need to additionally test it if we do not create a file. |
| 174 | if (Arc.Format==RARFMT50) |
| 175 | return CreateReparsePoint(Cmd,LinkName,&Arc.FileHead); |
| 176 | #endif |
| 177 | return false; |
| 178 | } |
no test coverage detected