Skip to content

Commit

Permalink
conf: fix false plist write error in config_set_device_record
Browse files Browse the repository at this point in the history
Thanks to @xunmod for reporting!
  • Loading branch information
nikias committed Sep 14, 2024
1 parent df80b73 commit 10d9eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ int config_set_device_record(const char *udid, char* record_data, uint64_t recor
remove(device_record_file);

/* store file */
if (!plist_write_to_file(plist, device_record_file, PLIST_FORMAT_XML, 0)) {
if (plist_write_to_file(plist, device_record_file, PLIST_FORMAT_XML, 0) != PLIST_ERR_SUCCESS) {
usbmuxd_log(LL_DEBUG, "Could not open '%s' for writing: %s", device_record_file, strerror(errno));
res = -ENOENT;
}
Expand Down

0 comments on commit 10d9eae

Please sign in to comment.