111 |
111 |
112 if (mypath) |
112 if (mypath) |
113 free(mypath); |
113 free(mypath); |
114 mypath = xstrcpy(Private_Path); |
114 mypath = xstrcpy(Private_Path); |
115 mypath = xstrcat(mypath, (char *)"/bms.config"); |
115 mypath = xstrcat(mypath, (char *)"/bms.config"); |
116 if (mkdirs(mypath, 0755) == FALSE) |
116 if (mkdirs(mypath, 0755) == false) |
117 return 1; |
117 return 1; |
118 |
118 |
119 if ((fp = fopen(mypath, "w")) == NULL) { |
119 if ((fp = fopen(mypath, "w")) == NULL) { |
120 syslog(LOG_NOTICE, "[rdconfig] could not rewrite %s", mypath); |
120 syslog(LOG_NOTICE, "[rdconfig] could not rewrite %s", mypath); |
121 return 1; |
121 return 1; |