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 |