Репозитории ALT
Группа :: Разработка/Прочее
Пакет: chrpath
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: chrpath-rh-NULL-entry.patch
Скачать
Скачать
--- chrpath/killrpath.c
+++ chrpath/killrpath.c
@@ -73,8 +73,11 @@ killrpath(const char *filename)
if ( ! elf_dynpath_tag(dyns[i].d_tag) )
dynpos++;
}
- for (; dynpos < i; dynpos++)
+ for (; dynpos < i; dynpos++) {
dyns[dynpos].d_tag = DT_NULL;
+ dyns[dynpos].d_un.d_val = 0x0;
+ }
+
if (lseek(fd, phdr.p_offset, SEEK_SET) == -1
|| write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz)