Skip to content

Commit 754e7ef

Browse files
trostennawazn
authored andcommitted
Bug#24464380 PRIVILEGE ESCALATION USING MYSQLD_SAFE
Post push fix: Solaris 10 /bin/sh don't understand $().
1 parent 48bd8b1 commit 754e7ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/mysqld_safe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ set_malloc_lib() {
321321

322322
if [ "$malloc_lib" = tcmalloc ]; then
323323
malloc_lib=
324-
for libdir in $(echo $malloc_dirs); do
324+
for libdir in `echo $malloc_dirs`; do
325325
for flavor in _minimal '' _and_profiler _debug; do
326326
tmp="$libdir/libtcmalloc$flavor.so"
327327
#log_notice "DEBUG: Checking for malloc lib '$tmp'"
@@ -348,7 +348,7 @@ set_malloc_lib() {
348348
fi
349349

350350
# Restrict to a the list in $malloc_dirs above
351-
case "$(dirname "$malloc_lib")" in
351+
case "`dirname "$malloc_lib"`" in
352352
/usr/lib) ;;
353353
/usr/lib64) ;;
354354
/usr/lib/i386-linux-gnu) ;;

0 commit comments

Comments
 (0)