Skip to content

Commit 10d9eae

Browse files
committed
conf: fix false plist write error in config_set_device_record
Thanks to @xunmod for reporting!
1 parent df80b73 commit 10d9eae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ int config_set_device_record(const char *udid, char* record_data, uint64_t recor
431431
remove(device_record_file);
432432

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

0 commit comments

Comments
 (0)