Репозитории ALT
5.1: | 1.6f-alt11 |
4.1: | 1.6f-alt1 |
4.0: | 1.5m2-alt4 |
+backports: | 1.6f-alt5.M40.1 |
3.0: | 1.5m2-alt3 |
Группа :: Система/Основа
Пакет: man
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: man-1.5k-mdk-lookon.patch
Скачать
Скачать
--- man-1.5h1/src/manfile.c.lookon Wed Apr 7 14:52:05 1999
+++ man-1.5h1/src/manfile.c Thu Oct 12 16:10:15 2000
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+#include <unistd.h>
#include "glob.h"
#include "manfile.h"
@@ -172,7 +173,6 @@
names = glob_for_file (dir, sec, name, type);
if (names) {
for (np = names; *np; np++) {
-#if 0 /* 1 requires <unistd.h> */
/* Keep looking if we encounter a file
we can't access */
if (access(*np, R_OK))
@@ -181,7 +181,6 @@
/* disadvantage: no error message when permissions
are wrong, the page just silently becomes
invisible */
-#endif
p = (struct manpage *) malloc(sizeof(*p));
if (!p)
break; /* %% perhaps print msg, free names */