diff options
author | Oskar <[email protected]> | 2024-06-30 13:49:43 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-06-30 13:49:43 +0200 |
commit | b5fc1ae8a6c5d06b76c94da22495fccd2e126bb3 (patch) | |
tree | 0c261ada5017004cdbde2cc734daf3e050a97ae6 /trashsys.c | |
parent | 2d664cc4e151f03053982d3075239bfa1aaea41e (diff) |
new tmp strings for ipi
Diffstat (limited to 'trashsys.c')
-rw-r--r-- | trashsys.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -122,6 +122,15 @@ struct initial_path_info *fill_ipi() { // Function for filling out initial_path_ char *ts_log_withslash = "/log/"; char *ts_trashed_withslash = "/trashed/"; char *homepath; + + char *ts_tmp = "/tmp"; + char *ts_tmp_toplevel = "/tmp/.trashsys"; + char *ts_tmp_log = "/tmp/.trashsys/log"; + char *ts_tmp_trashed = "/tmp/.trashsys/trashed"; + char *ts_tmp_withslash = "/tmp/"; + char *ts_tmp_toplevel_withslash = "/tmp/.trashsys/"; + char *ts_tmp_log = "/tmp/.trashsys/log/"; + char *ts_tmp_trashed = "/tmp/.trashsys/trashed/" struct initial_path_info *ipi = malloc(sizeof(struct initial_path_info)); // malloc memory to struct ipi->ts_path_user_home[0] = '\0'; // Add null character to all of them because we'll be using concat_str (basically strcat) later |