We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 241b139 commit 5aafbc5Copy full SHA for 5aafbc5
pwnlib/elf/corefile.py
@@ -1510,7 +1510,10 @@ def apport_coredump(self):
1510
# should be unique enough that we can just glob.
1511
1512
boot_id = read('/proc/sys/kernel/random/boot_id').strip().decode()
1513
- path = self.exe.replace('/', '_')
+
1514
+ # Use the absolute path of the executable
1515
+ # Apport uses the executable's pathname in the core filename
1516
+ path = os.path.abspath(self.exe).replace('/', '_').replace('.', '_')
1517
1518
# Format the name
1519
corefile_name = 'core.{path}.{uid}.{boot_id}.{pid}.*'.format(
0 commit comments