Files
asterisk/main
George Joseph 309ea22d8d asterisk.c: Use the euid's home directory to read/write cli history
The CLI .asterisk_history file is read from/written to the directory
specified by the HOME environment variable. If the root user starts
asterisk with the -U/-G options, or with runuser/rungroup set in
asterisk.conf, the asterisk process is started as root but then it
calls setuid/setgid to set the new user/group. This does NOT reset
the HOME environment variable to the new user's home directory
though so it's still left as "/root". In this case, the new user
will almost certainly NOT have access to read from or write to the
history file.

* Added function process_histfile() which calls
  getpwuid(geteuid()) and uses pw->dir as the home directory
  instead of the HOME environment variable.
* ast_el_read_default_histfile() and ast_el_write_default_histfile()
  have been modified to use the new process_histfile()
  function.

Resolves: #337
2023-09-22 13:34:13 +00:00
..
2021-11-15 15:28:45 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2020-05-05 10:06:43 -05:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2020-04-06 10:23:20 -05:00
2021-12-02 15:02:42 -06:00
2023-01-30 16:17:20 -05:00
2021-12-02 15:02:42 -06:00
2022-07-12 07:45:19 -05:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2023-09-21 14:47:08 +00:00
2023-03-16 10:15:08 -05:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2022-07-07 08:22:43 -05:00
2022-09-26 14:12:25 -05:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2020-06-10 09:33:28 -05:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-11-15 15:28:45 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2021-11-15 15:28:45 -06:00
2021-11-15 15:28:45 -06:00
2023-06-05 13:31:55 +00:00
2021-12-02 15:02:42 -06:00
2023-06-09 18:19:46 +00:00
2022-09-11 18:02:09 -05:00
2023-04-03 07:12:13 -05:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2023-08-28 13:37:56 +00:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2021-11-18 13:25:54 -06:00
2021-11-18 13:25:54 -06:00
2022-05-09 08:21:58 -05:00
2021-12-02 15:02:42 -06:00
2021-12-02 15:02:42 -06:00
2022-03-24 12:01:32 -05:00
2021-12-02 15:02:42 -06:00
2021-11-15 15:28:45 -06:00
2021-12-02 15:02:42 -06:00