]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_keychain/regressions/kc-keychain-file-helpers.h
Security-58286.1.32.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / regressions / kc-keychain-file-helpers.h
index f6d99a41da22d166cb33b25e8213737bc5c25371..b5baede4b4a7b56cc56a7a9bb113a8d61b1e877a 100644 (file)
@@ -64,6 +64,7 @@ static void writeFile(const char* path, uint8_t* buf, size_t len) {
     FILE * fp = fopen(path, "w+");
     fwrite(buf, sizeof(uint8_t), len, fp);
     fclose(fp);
+    sync();
 }
 
 // The following keychain includes: