git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@318 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/02/21 07:21:31... | ... |
@@ -67,6 +67,7 @@ Luca 'NERvOus' Gibelli <nervous*clamav.net> |
67 | 67 |
Nigel Horne <njh*smsltd.demon.co.uk> |
68 | 68 |
Hrvoje Habjanic <hrvoje.habjanic*zg.hinet.hr> |
69 | 69 |
Robert Hogan <robert*roberthogan.net> |
70 |
+James F. Hranicky <jfh*cise.ufl.edu> |
|
70 | 71 |
Andy Igoshin <ai*vsu.ru> |
71 | 72 |
Nicholas M. Kirsch <nick*kirsch.org> |
72 | 73 |
Robbert Kouprie <robbert*exx.nl> |
... | ... |
@@ -83,11 +84,13 @@ Arkadiusz Miskiewicz <misiek*pld.org.pl> |
83 | 83 |
Dustin Mollo <dustin.mollo*sonoma.edu> |
84 | 84 |
Hendrik Muhs <Hendrik.Muhs*student.uni-magdeburg.de> |
85 | 85 |
Masaki Ogawa <proc*mac.com> |
86 |
+Phil Oleson <oz*nixil.net> |
|
86 | 87 |
Rudolph Pereira <r.pereira*isu.usyd.edu.au> |
87 | 88 |
Ed Phillips <ed*UDel.Edu> |
88 | 89 |
Andreas Piesk <Andreas.Piesk*heise.de> |
89 | 90 |
Ant La Porte <ant*dvere.net> |
90 | 91 |
Thomas Quinot <thomas*cuivre.fr.eu.org> |
92 |
+Hector M. Rulot Segovia <Hector.Rulot@uv.es> |
|
91 | 93 |
David Santinoli <david*santinoli.com> |
92 | 94 |
Vijay Sarvepalli <vssarvep*office.uncg.edu> |
93 | 95 |
Matt Sullivan <matt*sullivan.gen.nz> |
... | ... |
@@ -1,3 +1,9 @@ |
1 |
+Fri Feb 20 23:21:42 CET 2004 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * configure: --enable-yp-check (use ypmatch utility instead of /etc/passwd |
|
4 |
+ parsing) by James F. Hranicky <jfh*cise.ufl.edu>. |
|
5 |
+ * clamdscan, libclamav: small code cleanups from Phil Oleson <oz*nixil.net> |
|
6 |
+ |
|
1 | 7 |
Fri Feb 20 17:13:10 GMT 2004 (njh) |
2 | 8 |
---------------------------------- |
3 | 9 |
* clamav-milter: If clamd is on the local machine and PidFile is defined |
... | ... |
@@ -122,12 +122,6 @@ int client(const struct optstruct *opt) |
122 | 122 |
|
123 | 123 |
/* we need the full path to the file */ |
124 | 124 |
if(!getcwd(cwd, 200)) { |
125 |
- mprintf("@Can't get absolute pathname of current working directory.\n"); |
|
126 |
- return 2; |
|
127 |
- } |
|
128 |
- |
|
129 |
- |
|
130 |
- if(!getcwd(cwd, 200)) { |
|
131 | 125 |
mprintf("@Can't get the absolute pathname of the current working directory.\n"); |
132 | 126 |
return 2; |
133 | 127 |
} |
... | ... |
@@ -116,6 +116,10 @@ AC_ARG_ENABLE(id-check, |
116 | 116 |
[ --enable-id-check Use id utility instead of /etc/passwd parsing], |
117 | 117 |
use_id="yes", use_id="no") |
118 | 118 |
|
119 |
+AC_ARG_ENABLE(yp-check, |
|
120 |
+[ --enable-yp-check Use ypmatch utility instead of /etc/passwd parsing], |
|
121 |
+use_yp="yes", use_yp="no") |
|
122 |
+ |
|
119 | 123 |
dnl clamav user |
120 | 124 |
AC_ARG_WITH(user, |
121 | 125 |
[ --with-user=uid name of the clamav user (default=clamav).], |
... | ... |
@@ -435,6 +439,12 @@ then |
435 | 435 |
clamavgroup=`/usr/bin/nidump group . |grep ${clamav_group}` |
436 | 436 |
fi |
437 | 437 |
|
438 |
+ if test "$use_yp" = "yes" |
|
439 |
+ then |
|
440 |
+ clamavuser=`ypmatch ${clamav_user} passwd` |
|
441 |
+ clamavgroup=`ypmatch ${clamav_group} group` |
|
442 |
+ fi |
|
443 |
+ |
|
438 | 444 |
if test -z "$clamavuser" || test -z "$clamavgroup" |
439 | 445 |
then |
440 | 446 |
echo "ERROR: User \"$clamav_user\" (and/or group \"$clamav_group\") doesn't exist. Please create it. You can omit this check with the --disable-clamav option." |
... | ... |
@@ -306,7 +306,9 @@ char *cl_gentemp(const char *dir) |
306 | 306 |
cli_dbgmsg("cl_gentemp('%s'): out of memory\n", dir); |
307 | 307 |
return NULL; |
308 | 308 |
} |
309 |
- cnt += sprintf(name, "%s/", mdir); |
|
309 |
+ cnt += sprintf(name, "%s", mdir); |
|
310 |
+ if(!strrchr(name, '/')) |
|
311 |
+ strcat(name, '/'); |
|
310 | 312 |
|
311 | 313 |
do { |
312 | 314 |
for(i = 0; i < 32; i++) |