Make savecore check core file is accessible
This commit is contained in:
parent
88983a1a2e
commit
30f12acf73
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ alert_deity ()
|
|||
test -n "$privlog" && trap 'alert_deity' EXIT
|
||||
|
||||
core_name=`ls -td $core_pattern | head -n 1`
|
||||
test -n "$core_name"
|
||||
test -r "$core_name"
|
||||
saved_core=$core_dir/core-`/bin/date +%Y-%m-%d-%H:%M`
|
||||
|
||||
mv -f $core_name $saved_core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue