Changeset d50e22f for storage_xml.c
- Timestamp:
- 2010-06-08T22:22:16Z (14 years ago)
- Branches:
- master
- Children:
- d7db346
- Parents:
- f1cea66 (diff), 04a927c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_xml.c
rf1cea66 rd50e22f 404 404 return STORAGE_ALREADY_EXISTS; 405 405 406 strcat( path, " ~" );407 if( ( fd = open( path, O_WRONLY | O_CREAT | O_TRUNC, 0600) ) < 0 )406 strcat( path, ".XXXXXX" ); 407 if( ( fd = mkstemp( path ) ) < 0 ) 408 408 { 409 409 irc_usermsg( irc, "Error while opening configuration file." ); … … 501 501 close( fd ); 502 502 503 path2 = g_strndup( path, strlen( path ) - 1);503 path2 = g_strndup( path, strlen( path ) - 7 ); 504 504 if( rename( path, path2 ) != 0 ) 505 505 {
Note: See TracChangeset
for help on using the changeset viewer.