diff options
author | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2012-12-27 17:36:11 +0530 |
---|---|---|
committer | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2012-12-27 17:36:11 +0530 |
commit | 4c03dd7e3ae7cce6171f37d1a2de8ff1db57476d (patch) | |
tree | 54623597d56ca893ed031bde9503acf304254316 /scripts | |
parent | 11b56938397f9f64e223c3b49cb10a25c0be9e24 (diff) | |
parent | 3dbf1b3e5fd3a3d280e59b3712529af7e5bd182a (diff) | |
download | mariadb-git-4c03dd7e3ae7cce6171f37d1a2de8ff1db57476d.tar.gz |
Merge of patch for Bug#16046140 from mysql-5.1.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysqld_safe.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh index b5262bf3b13..6587a153a3f 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -569,7 +569,7 @@ then log_notice "Logging to '$err_log'." logging=file - if [ ! -e "$err_log" ]; then # if error log already exists, + if [ ! -f "$err_log" ]; then # if error log already exists, touch "$err_log" # we just append. otherwise, chmod "$fmode" "$err_log" # fix the permissions here! fi @@ -785,7 +785,7 @@ do eval_log_error "$cmd" - if [ $want_syslog -eq 0 -a ! -e "$err_log" ]; then + if [ $want_syslog -eq 0 -a ! -f "$err_log" ]; then touch "$err_log" # hypothetical: log was renamed but not chown $user "$err_log" # flushed yet. we'd recreate it with chmod "$fmode" "$err_log" # wrong owner next time we log, so set |