Репозитории ALT
5.1: | 2.86-alt2 |
4.1: | 2.86-alt2 |
4.0: | 2.86-alt1 |
3.0: | 2.85-alt8 |
Группа :: Система/Настройка/Загрузка и инициализация
Пакет: SysVinit
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: sysvinit-2.86-deb-init-longer-procname.patch
Скачать
Скачать
#! /bin/sh /usr/share/dpatch/dpatch-run
## 63_init_longer_procname.dpatch by Kir Kolyshkin
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Terminate argv0 with one 0 rather than two so that process
## DP: name can be one character longer
@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./src/init.c /tmp/dpep-work.aSvxrG/trunk/src/init.c
--- ./src/init.c 2006-01-04 17:44:08.000000000 +0100
+++ /tmp/dpep-work.aSvxrG/trunk/src/init.c 2006-01-04 17:44:20.000000000 +0100
@@ -615,9 +615,9 @@
len = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
- if (maxproclen > 2) {
+ if (maxproclen > 1) {
memset(argv0, 0, maxproclen);
- strncpy(argv0, buf, maxproclen - 2);
+ strncpy(argv0, buf, maxproclen - 1);
}
return len;