diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-13 15:20:02 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-13 15:20:02 +0000 |
commit | de26b25c7f4f52c2964d3a3a5ae26482d52004a3 (patch) | |
tree | 109af52820930254e64136d6094b39050905a27d /apps | |
parent | 64ca8501337146876169d4b174f06862f88c9e06 (diff) |
Merged revisions 37441-37442 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r37441 | kpfleming | 2006-07-12 10:46:56 -0500 (Wed, 12 Jul 2006) | 3 lines
fix a case where ast_lock_path() could leave a randomly-named lock file hanging around
make ast_unlock_path actually report when unlocking fails
........
r37442 | kpfleming | 2006-07-12 10:53:53 -0500 (Wed, 12 Jul 2006) | 2 lines
fix a weird case where a lock file could be left (but would happen almost never)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37514 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index e0a7f3b21..210201721 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2650,7 +2650,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ } else if (ast_fileexists(tmptxtfile, NULL, NULL) <= 0) { if (option_debug) ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n"); - unlink(tmptxtfile); + unlink(tmptxtfile); + ast_unlock_path(dir); } else { for (;;) { make_file(fn, sizeof(fn), dir, msgnum); |