mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 02:05:31 +02:00
5.2 -> 5.3
This commit is contained in:
commit
c4341d5095
115 changed files with 2397 additions and 1031 deletions
|
|
@ -397,7 +397,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
|
||||
|
|
@ -607,7 +607,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue