summaryrefslogtreecommitdiffstats
path: root/src/hooks
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-15 18:31:35 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-15 18:31:35 +0200
commitb9c5c7c7e29b33eac351e801ce92a9adadc00907 (patch)
tree55854aadcf56488078751f7e906a2afa86247cf1 /src/hooks
parent4a13c99ba80ef3082a4a3bd1025dd6778265ec8d (diff)
downloadabrt-b9c5c7c7e29b33eac351e801ce92a9adadc00907.tar.gz
abrt-b9c5c7c7e29b33eac351e801ce92a9adadc00907.tar.xz
abrt-b9c5c7c7e29b33eac351e801ce92a9adadc00907.zip
Before this patch, dd_opendir(".") was creating
lock file "..lock", which is obviously wrong. This patch makes dd_opendir use realpath(dir_name). This makes dd_opendir(".") and similar cases correctly determine what is its parent directory and therefore use correct lock file name. dd_create can't use realpath, since it will always return NULL on not-yet existing directory. But this is not a problem, since dd_create(".") isn't a sane operation. So we continue to use old code. I only added a sanity check to refuse names ending in . and .. - just in case. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/hooks')
0 files changed, 0 insertions, 0 deletions