[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] killall5.c: Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLI
From: |
Justus Winter |
Subject: |
[PATCH 6/8] killall5.c: Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS. |
Date: |
Tue, 9 Jul 2013 10:46:49 +0200 |
Fixes build on Hurd.
---
debian/changelog | 2 ++
src/killall5.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index e77bd4e..50944ca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -60,6 +60,8 @@ sysvinit (2.88dsf-42) UNRELEASED; urgency=low
only recently.
* checkroot.sh: Disable rootcheck on Hurd. The concept of device ids
simply does not apply to the Hurd system.
+ * killall5.c: Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS.
+ Fixes build on Hurd.
-- Roger Leigh <rleigh@debian.org> Sat, 04 May 2013 13:13:51 +0100
diff --git a/src/killall5.c b/src/killall5.c
index 5937d98..02ac88f 100644
--- a/src/killall5.c
+++ b/src/killall5.c
@@ -373,7 +373,7 @@ int check4nfs(const char * path, char * real)
{
char buf[PATH_MAX+1];
const char *curr;
- int deep = MAXSYMLINKS;
+ int deep = sysconf(_SC_SYMLOOP_MAX);
if (!nlist) return 0;
--
1.7.10.4
- patches for sysvinit, debian repository for testing, Justus Winter, 2013/07/09
- [PATCH 2/8] initscripts: add -ocompatible to procfs mounts on Hurd, Justus Winter, 2013/07/09
- [PATCH 1/8] initscripts: hurd has a proper tmpfs now, remove workaround, Justus Winter, 2013/07/09
- [PATCH 3/8] initscripts: use pidof -s /sbin/init for robustness, Justus Winter, 2013/07/09
- [PATCH 7/8] sendsigs, killprocs: Disable on Hurd. killall5 kills essential processes., Justus Winter, 2013/07/09
- [PATCH 4/8] initscripts: add runsystem.sysv, Justus Winter, 2013/07/09
- [PATCH 5/8] initscripts: Disable rootcheck on Hurd, Justus Winter, 2013/07/09
- [PATCH 6/8] killall5.c: Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS.,
Justus Winter <=
- [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd., Justus Winter, 2013/07/09
- Re: [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd., Pino Toscano, 2013/07/22
Re: patches for sysvinit, debian repository for testing, Samuel Thibault, 2013/07/15