From b5fc1ae8a6c5d06b76c94da22495fccd2e126bb3 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sun, 30 Jun 2024 13:49:43 +0200 Subject: new tmp strings for ipi --- trashsys.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'trashsys.c') diff --git a/trashsys.c b/trashsys.c index 77156a4..893354f 100644 --- a/trashsys.c +++ b/trashsys.c @@ -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 -- cgit v1.2.3