[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cfexecd not using WORKDIR (affects: Red Hat 6.2, does NOT affect: Red H
From: |
Hugo Gayosso |
Subject: |
cfexecd not using WORKDIR (affects: Red Hat 6.2, does NOT affect: Red Hat 7.1 or 7.2) |
Date: |
17 Dec 2001 10:29:37 +0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Environment
===========
cfengine-2.0.a15
Red Hat 6.2
# rpm -qa | grep glibc
glibc-devel-2.1.3-15
compat-glibc-5.2-2.0.7.2
glibc-2.1.3-15
Error message
=============
# /usr/local/sbin/cfexecd --debug | more
cfexecd Debug mode: running in foreground
Directory for /var/cfengine/inputs/update.conf exists. Okay
: Cannot make /var/cfengine/inputs/update.conf/bin/cfagent.
/var/cfengine/inputs/update.conf is not a directory!
Directory for /var/cfengine/outputs/spooled_reports exists. Okay
Patch
=====
$ diff -u cfexecd.c cfexecd.c.new
- --- cfexecd.c Mon Dec 17 10:25:14 2001
+++ cfexecd.c.new Mon Dec 17 10:25:02 2001
@@ -197,7 +197,7 @@
sprintf(VBUFF,"%s/inputs/update.conf",WORKDIR);
MakeDirectoriesFor(VBUFF);
- -sprintf(VBUFF,"%s/bin/cfagent");
+sprintf(VBUFF,"%s/bin/cfagent",WORKDIR);
MakeDirectoriesFor(VBUFF);
sprintf(VBUFF,"%s/outputs/spooled_reports",WORKDIR);
MakeDirectoriesFor(VBUFF);
Verification
============
# /usr/local/sbin/cfexecd --debug | more
cfexecd Debug mode: running in foreground
Directory for /var/cfengine/inputs/update.conf exists. Okay
Directory for /var/cfengine/bin/cfagent exists. Okay
Directory for /var/cfengine/outputs/spooled_reports exists. Okay
Systems NOT affected
=====================
(no patch applied here!)
$ cat /etc/redhat-release
Red Hat Linux release 7.1 (Seawolf)
$ rpm -qa | grep glibc
glibc-2.2.2-10
glibc-common-2.2.2-10
glibc-devel-2.2.2-10
# /usr/local/sbin/cfexecd --debug | more
cfexecd Debug mode: running in foreground
Directory for /var/cfengine/inputs/update.conf exists. Okay
Directory for /var/cfengine/bin/cfagent exists. Okay
Directory for /var/cfengine/outputs/spooled_reports exists. Okay
- ---------
$ cat /etc/redhat-release
Red Hat Linux release 7.2 (Enigma)
$ rpm -qa | grep glibc
glibc-2.2.4-19
glibc-common-2.2.4-19
glibc-devel-2.2.4-19
# /usr/local/sbin/cfexecd --debug | more
cfexecd Debug mode: running in foreground
Directory for /var/cfengine/inputs/update.conf exists. Okay
Directory for /var/cfengine/bin/cfagent exists. Okay
Directory for /var/cfengine/outputs/spooled_reports exists. Okay
WildMatch(-,linux)
- --
Hugo Gayosso
Support the Free Software Movement!
GNU Project <http://www.gnu.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8HYLBx2JZtTN6co8RApk1AJwOfTRfH25yEQuoL1Zoeq4TCJfmxACfUS1Y
6wPmzXXXEdj46e8mj1KCp74=
=wIBy
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cfexecd not using WORKDIR (affects: Red Hat 6.2, does NOT affect: Red Hat 7.1 or 7.2),
Hugo Gayosso <=