diff options
| author | 2024-09-14 18:40:24 +0800 | |
|---|---|---|
| committer | 2024-09-14 21:38:13 +0200 | |
| commit | 10d9eae13bb2408982eea60f1b2eb529f6c74647 (patch) | |
| tree | f27a1c02e56d2c1bf902d2d05997c944fb08799f /src/conf.c | |
| parent | df80b73b411d1053cb87e96439d2282879d9baa8 (diff) | |
| download | usbmuxd-10d9eae13bb2408982eea60f1b2eb529f6c74647.tar.gz usbmuxd-10d9eae13bb2408982eea60f1b2eb529f6c74647.tar.bz2 | |
conf: fix false plist write error in config_set_device_record
Thanks to @xunmod for reporting!
Diffstat (limited to 'src/conf.c')
| -rw-r--r-- | src/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -431,7 +431,7 @@ int config_set_device_record(const char *udid, char* record_data, uint64_t recor | |||
| 431 | remove(device_record_file); | 431 | remove(device_record_file); |
| 432 | 432 | ||
| 433 | /* store file */ | 433 | /* 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) { |
| 435 | usbmuxd_log(LL_DEBUG, "Could not open '%s' for writing: %s", device_record_file, strerror(errno)); | 435 | usbmuxd_log(LL_DEBUG, "Could not open '%s' for writing: %s", device_record_file, strerror(errno)); |
| 436 | res = -ENOENT; | 436 | res = -ENOENT; |
| 437 | } | 437 | } |
