bmsd/bms.c

changeset 745
3addb8cfcc3e
parent 680
0bb48333d133
child 746
44d929ff268e
equal deleted inserted replaced
744:b8ccc85675a0 745:3addb8cfcc3e
1 /***************************************************************************** 1 /*****************************************************************************
2 * Copyright (C) 2017-2020 2 * Copyright (C) 2017-2021
3 * 3 *
4 * Michiel Broek <mbroek at mbse dot eu> 4 * Michiel Broek <mbroek at mbse dot eu>
5 * 5 *
6 * This file is part of the bms (Brewery Management System) 6 * This file is part of the bms (Brewery Management System)
7 * 7 *
107 * Make sure the needed log paths exist. 107 * Make sure the needed log paths exist.
108 */ 108 */
109 tmppath = xstrcpy(Config.web_root); 109 tmppath = xstrcpy(Config.web_root);
110 tmppath = xstrcat(tmppath, (char *)"/log/fermentation/"); 110 tmppath = xstrcat(tmppath, (char *)"/log/fermentation/");
111 if (! mkdirs(tmppath, 0755)) { 111 if (! mkdirs(tmppath, 0755)) {
112 rc = 5; 112 rc = 6;
113 goto endit1; 113 goto endit1;
114 } 114 }
115 free(tmppath); 115 free(tmppath);
116 tmppath = xstrcpy(Config.web_root); 116 tmppath = xstrcpy(Config.web_root);
117 tmppath = xstrcat(tmppath, (char *)"/log/brews/"); 117 tmppath = xstrcat(tmppath, (char *)"/log/brews/");
118 if (! mkdirs(tmppath, 0755)) { 118 if (! mkdirs(tmppath, 0755)) {
119 rc = 5; 119 rc = 7;
120 goto endit1; 120 goto endit1;
121 } 121 }
122 free(tmppath); 122 free(tmppath);
123 tmppath = NULL; 123 tmppath = NULL;
124 124

mercurial