Hi @all,
iirc /bin/sh scripts should use "." instead of "source" (see
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot
)
To use "source" you should change the interpreter to be "/bin/bash"
lib389@rpolli:~/workspaces/389-ds-base/ds/ldap/admin/src/scripts$ git diff .
diff --git a/ldap/admin/src/scripts/ldif2db.in
b/ldap/admin/src/scripts/ldif2db.in
index ce15349..fb24863 100755
--- a/ldap/admin/src/scripts/ldif2db.in
+++ b/ldap/admin/src/scripts/ldif2db.in
@@ -1,6 +1,6 @@
#!/bin/sh
-source @datadir@/@package_name@/data/DSSharedLib
+. @datadir@/@package_name@/data/DSSharedLib
libpath_add "@libdir@/@package_name@/"
libpath_add "@nss_libdir@"
--
Roberto Polli
Community Manager
Babel - a business unit of Par-Tec S.p.A. - http://www.babel.it
T: +39.06.9826.9651 M: +39.340.652.2736 F: +39.06.9826.9680
P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere
confidenziale per i destinatari in indirizzo.
E' vietato l'inoltro non autorizzato a destinatari diversi da quelli indicati
nel messaggio originale.
Se ricevuto per errore, l'uso del contenuto e' proibito; si prega di
comunicarlo al mittente e cancellarlo immediatamente.
https://fedorahosted.org/389/ticket/443https://fedorahosted.org/389/attachment/ticket/443/0003-Ticket-443-Deleting…
Description: commit 90dd9bb3c1411daca353d055d90618e67aa1fa7e introduced
an Invalid read. If an empty value is set to on/off type config param,
it cannot be distinguished from the internal OFF value '0'. When checking
the value other than "on" and "off", the pointer was casted to an integer
and evaluated the value. When an empty value is given, it is an empty string
"", which size is sizeof(char), not sizeof(int), which caused the Invalid
read.