summaryrefslogtreecommitdiffstats
path: root/src/plugins/abrt-action-install-debuginfo.py
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-02-22 05:09:13 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-02-22 05:09:13 +0100
commit20a9c4ddff4e597bc67f6cc232890ea946b38692 (patch)
treed57f93f61e703dab499303e56be57ba490332217 /src/plugins/abrt-action-install-debuginfo.py
parente69d06fe2be6ccf4c06ab5b76aac9838ab2dc2f9 (diff)
downloadabrt-20a9c4ddff4e597bc67f6cc232890ea946b38692.tar.gz
abrt-20a9c4ddff4e597bc67f6cc232890ea946b38692.tar.xz
abrt-20a9c4ddff4e597bc67f6cc232890ea946b38692.zip
abrt-action-install-debuginfo: disallow overriding paths to writable dirs
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/plugins/abrt-action-install-debuginfo.py')
-rwxr-xr-xsrc/plugins/abrt-action-install-debuginfo.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/abrt-action-install-debuginfo.py b/src/plugins/abrt-action-install-debuginfo.py
index 535796e6..72f56a9d 100755
--- a/src/plugins/abrt-action-install-debuginfo.py
+++ b/src/plugins/abrt-action-install-debuginfo.py
@@ -6,6 +6,7 @@
from subprocess import Popen, PIPE
import sys
import os
+import time
import getopt
import shutil
from yum import _, YumBase
@@ -447,13 +448,9 @@ if __name__ == "__main__":
print help_text
exit(RETURN_FAILURE)
if not cachedir:
- print _("You have to specify the path to cache.")
- print help_text
- exit(RETURN_FAILURE)
+ cachedir = "/var/cache/abrt-di"
if not tmpdir:
- print _("You have to specify the path to tmpdir.")
- print help_text
- exit(RETURN_FAILURE)
+ tmpdir = "/var/run/abrt/install-debuginfo-%s.%u" % (time.strftime("%Y-%m-%d-%H:%M:%S"), os.getpid())
b_ids = extract_info_from_core(core)
if b_ids == RETURN_FAILURE: