If 'wrap-program' is used on mysql_config to set PATH tothe bin directories of awk, coreutils and sed,or 'substitute*' is used to replace 'awk', 'sed' and 'ls'by their absolute paths, then propagation can be avoided. Greetings,Maxime.
Hi Maxime, On Wed, 15 Sept 2021 at 13:43, Maxime Devos <firstname.lastname@example.org> wrote:
Toggle quote (5 lines)> If 'wrap-program' is used on mysql_config to set PATH to> the bin directories of awk, coreutils and sed,> or 'substitute*' is used to replace 'awk', 'sed' and 'ls'> by their absolute paths, then propagation can be avoided.
Indeed. It is better. :-)Done in v2.Thanks for the review. Cheers,simon
Hi, On lun., 20 sept. 2021 at 19:19, Mathieu Othacehe <email@example.com> wrote:
Toggle quote (3 lines)> It looks like mysqld_safe could use the same kind of wrapping, at least> for "ps" and "grep" binaries. Could you please have a look?
Thanks for the catch up. Well, it is fixed in v3. I have checked byhand the 2 bash scripts…
Toggle snippet (7 lines)$ file bin/* | grep -v ELFbin/mysql_config: a /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash script, ASCII text executablebin/mysqld_safe: a /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh script, ASCII text executablebin/mysqld_multi: Perl script text executablebin/mysqldumpslow: Perl script text executable
…and I have no idea about the Perl ones; let assume all is fine sincethere is no bug report about them. ;-) Note that ’mysqld_safe’ contains absolute path:
Toggle snippet (13 lines) # Restrict to a the list in $malloc_dirs above case "`dirname "$malloc_lib"`" in /usr/lib) ;; /usr/lib64) ;; /usr/lib/i386-linux-gnu) ;; /usr/lib/x86_64-linux-gnu) ;; *) log_error "--malloc-lib must be located in one of the directories: $malloc_dirs" exit 1 ;; esac
Because I am not an user of ’mysqld_safe’ and there is no bug report, Iassume it is not an issue and let it aside.