bmsd/rdconfig.c

changeset 747
b6fbe6821468
parent 696
f4de55f587c1
child 748
1ecacd35c2a6
equal deleted inserted replaced
746:44d929ff268e 747:b6fbe6821468
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;

mercurial