Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37414001
en ru br
Репозитории ALT
S:2.3.15-alt6
5.1: 2.3.14-alt3
4.1: 2.3.14-alt3
4.0: 2.3.14-alt2
3.0: 2.3.13-alt4
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: xinetd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xinetd-2.3.12-alt-skipfiles.patch
Скачать


diff -uprk.orig xinetd-2.3.12.orig/xinetd/includedir.c xinetd-2.3.12/xinetd/includedir.c
--- xinetd-2.3.12.orig/xinetd/includedir.c	2003-08-25 14:15:45 +0400
+++ xinetd-2.3.12/xinetd/includedir.c	2003-08-25 14:15:58 +0400
@@ -94,13 +94,14 @@ void handle_includedir(const char *servi
    for( u = 0; (unsigned)u < pset_count(dir_list); u++ ) {
       storename = pset_pointer(dir_list, u);
 
-      /* Don't try to parse any files containing a dot ('.')
-      * or ending with a tilde ('~'). This catches the case of 
-      * '.' and '..', as well as preventing the parsing of 
-      * many editor files, temporary files and those saved by RPM
-      * package upgrades.
+      /* Don't try to parse any files containing a dot ('.'),
+      * starting with hash ('#') or ending with a tilde ('~').
+      * This catches the case of '.' and '..', as well as preventing
+      * the parsing of many editor files, temporary files and those
+      * saved by RPM package upgrades.
       */
       if ( !storename[0] /* Shouldn't happen */ || 
+                      storename[0] == '#' ||
                       strchr(storename, '.') ||
                       storename[strlen(storename)-1] == '~') {
          pset_remove(dir_list, storename);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin