>Description: I found 3 syntax errors found in safe_mysqld (and safe_mysqld.sh), in both source and binary distribution of MySQL 3.23.54. Since syntax errors are appearent, so I just post the patch file here to fix it.
diff -u -r mysql-3.23.54/scripts/safe_mysqld.sh mysql-3.23.54-fixsafemysqld/scripts/safe_mysqld.sh --- mysql-3.23.54/scripts/safe_mysqld.sh Thu Dec 5 17:37:05 2002 +++ mysql-3.23.54-fixsafemysqld/scripts/safe_mysqld.sh Fri Dec 13 12:11:30 2002 @@ -159,11 +159,11 @@ NOHUP_NICENESS=`nohup nice 2>&1` if test $? -eq 0 && test x"$NOHUP_NICENESS" != x0 && nice --1 echo foo > /dev/null 2>&1 then - if $NOHUP_NICENESS -gt 0 + if test $NOHUP_NICENESS -gt 0 then - $NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup" + NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup" else - NOHUP_NICENESS="nice -$NOHUP_NICENESS nohup" + NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup" fi else NOHUP_NICENESS="nohup" I think it is clear enough. Please mail me [EMAIL PROTECTED] if it is still not clear for any reason. >How-To-Repeat: N/A >Fix: Fix is above. >Submitter-Id: [EMAIL PROTECTED] >Originator: ¨Ìº¿¿ß >Organization: >MySQL support: none >Synopsis: Syntax error in safe_mysqld (and safe_mysqld.sh) >Severity: non-critical >Priority: medium >Category: mysql >Class: sw-bug >Release: mysql-3.23.54 (Source distribution) >Environment: Linux 2.4.20, both Red Hat and Mandrake. System: Linux atlas.pristine.com.tw 2.4.20 #2 Sat Nov 30 22:51:59 CST 2002 i686 unknown Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs Configured with: ./configure --quiet --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man Thread model: posix gcc version 3.2 Compilation info: CC='gcc' CFLAGS=' -g -O3' CXX='g++' CXXFLAGS='' LDFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 2¤ë 6 2002 /lib/libc.so.6 -> libc-2.2.4.so -rwxr-xr-x 1 root root 1285480 9¤ë 10 2001 /lib/libc-2.2.4.so -rw-r--r-- 1 root root 1822532 9¤ë 10 2001 /usr/lib/libc.a -rw-r--r-- 1 root root 178 9¤ë 10 2001 /usr/lib/libc.so Configure command: ./configure '--quiet' '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var/lib/mysql' '--libdir=/usr/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-assembler' '--with-unix-socket-path=/var/run/mysql/mysql.sock' '--with-mysqld-user=mysql' '--with-mysqld-ldflags=-all-static' '--without-bench' '--with-extra-charsets=all' 'CFLAGS= -g -O3' --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php