The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Первый баг"
Отправлено ПДК, 24-Ноя-18 17:33 
http://lists.nongnu.org/archive/html/sysvinit-devel/2018-11/...

From:     Jesse Smith
Subject:     [sysvinit-devel] So close
Date:     Fri, 23 Nov 2018 18:09:56 -0400

A few hours ago I wrote up the release notes for sysvinit-2.92 and it
looks like I might have jumped the gun by about two hours. A bug was
reported just now against the beta which pointed out pidof (in 2.92)
does not properly omit given PIDs when the "-o" flag is used. This is
due to a typo in the 2.92 code. the bug does not exist in sysvinit-2.91.

Attached is a patch which fixes the problem. Right now I'm not sure if
I'll publish a 2.93 update right away to fix the bug, or wait until the
next release to address this. Either way, for anyone building 2.92, the
attached patch fixes the bug in pidof. It would be a good idea to
include this in any packages based on the sysvinit-2.92 code.

- Jesse


diff --git a/src/killall5.c b/src/killall5.c
index 27b5778..25b333e 100644
--- a/src/killall5.c
+++ b/src/killall5.c
@@ -1006,7 +1006,7 @@ int main_pidof(int argc, char **argv)
    if ((token = getenv("PIDOF_NETFS")) && (strcmp(token,"no") != 0))
        flags |= PIDOF_NETFS;

-    while ((opt = getopt(argc,argv,"qhcof:sxn")) != EOF) switch (opt) {
+    while ((opt = getopt(argc,argv,"qhco:f:sxn")) != EOF) switch (opt) {
        case '?':
            nsyslog(LOG_ERR,"invalid options on command line!\n");
            closelog();

 

Ваше сообщение
Имя*:
EMail:
Для отправки ответов на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
  Введите код, изображенный на картинке: КОД
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру