File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1512,7 +1512,15 @@ def apport_coredump(self):
1512
1512
boot_id = read ('/proc/sys/kernel/random/boot_id' ).strip ().decode ()
1513
1513
1514
1514
# Use the absolute path of the executable
1515
- # Apport uses the executable's pathname in the core filename
1515
+ # Apport uses the executable's path to determine the core dump filename
1516
+ #
1517
+ # Reference source:
1518
+ # https://github.com/canonical/apport/blob/4bbb179b8f92989bf7c1ee3692074f35d70ef3e8/data/apport#L110
1519
+ # https://github.com/canonical/apport/blob/4bbb179b8f92989bf7c1ee3692074f35d70ef3e8/apport/fileutils.py#L599
1520
+ #
1521
+ # Apport calls `get_core_path` with `options.executable_path`, which corresponds to
1522
+ # the executable's pathname, as specified by the `%E` placeholder
1523
+ # in the core pattern (see `man core` and `apport --help`).
1516
1524
path = os .path .abspath (self .exe ).replace ('/' , '_' ).replace ('.' , '_' )
1517
1525
1518
1526
# Format the name
You can’t perform that action at this time.
0 commit comments