Lennart Poettering
eb3da9012f
util-lib: optionally, when writing a string to a file, verify string on failure
...
With this change, the idiom:
r = write_string_file(p, buf, 0);
if (r < 0) {
if (verify_one_line_file(p, buf) > 0)
r = 0;
}
gets reduced to:
r = write_string_file(p, buf, WRITE_STRING_FILE_VERIFY_ON_FAILURE);
i.e. when writing the string fails and the new flag
WRITE_STRING_FILE_VERIFY_ON_FAILURE is specified we'll not return a
failure immediately, but check the contents of the file. If it matches
what we wanted to write we suppress the error and exit cleanly.
2015-11-13 13:02:49 +01:00
..
2015-10-27 13:45:53 +01:00
2015-10-27 13:45:53 +01:00
2015-10-25 13:19:18 +01:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:57 +01:00
2015-10-25 13:19:18 +01:00
2015-10-27 13:45:53 +01:00
2015-07-16 14:11:12 +02:00
2015-11-10 21:41:22 +01:00
2015-10-22 01:59:25 +02:00
2015-10-27 13:45:53 +01:00
2015-11-10 17:31:31 +01:00
2015-10-15 02:57:59 +03:00
2015-10-27 13:25:55 +01:00
2015-11-09 20:01:06 +01:00
2015-10-27 13:25:57 +01:00
2015-10-27 13:45:53 +01:00
2015-09-16 00:21:55 +02:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:25:56 +01:00
2015-10-25 13:19:18 +01:00
2015-10-25 13:19:18 +01:00
2015-10-27 13:25:56 +01:00
2015-09-06 01:49:06 +02:00
2015-10-27 13:45:53 +01:00
2015-09-10 18:16:18 +02:00
2015-11-03 17:45:11 +01:00
2015-09-30 22:26:16 +02:00
2015-11-10 17:31:31 +01:00
2015-10-27 13:25:55 +01:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:25:56 +01:00
2015-11-11 07:55:23 -08:00
2015-11-11 07:55:23 -08:00
2015-11-03 17:45:11 +01:00
2015-10-24 23:04:42 +02:00
2015-10-26 01:24:39 +01:00
2015-10-26 01:24:39 +01:00
2015-07-24 14:51:05 +09:00
2015-11-11 22:53:05 +01:00
2015-11-11 22:53:05 +01:00
2015-10-27 14:57:44 +01:00
2015-10-27 14:57:44 +01:00
2015-10-31 19:09:20 +01:00
2015-10-31 19:09:20 +01:00
2015-07-06 19:19:25 -04:00
2015-11-13 13:02:49 +01:00
2015-11-13 13:02:49 +01:00
2015-10-25 13:19:18 +01:00
2015-11-12 17:57:04 +01:00
2015-11-12 17:57:04 +01:00
2015-11-03 17:45:11 +01:00
2015-11-03 17:45:11 +01:00
2015-10-27 13:45:53 +01:00
2015-10-05 18:22:10 +02:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:55 +01:00
2015-10-27 13:25:55 +01:00
2015-08-24 22:46:45 +02:00
2015-10-27 13:45:53 +01:00
2015-10-26 01:24:38 +01:00
2015-10-27 13:25:57 +01:00
2015-11-02 11:21:25 +01:00
2015-08-04 03:23:43 -07:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:45:53 +01:00
2015-11-05 13:44:03 +01:00
2015-10-24 23:05:02 +02:00
2015-10-24 23:05:02 +02:00
2015-10-24 23:30:40 +02:00
2015-11-03 17:45:11 +01:00
2015-10-27 13:45:53 +01:00
2015-10-25 13:19:18 +01:00
2015-11-11 15:42:38 +01:00
2015-10-27 13:25:57 +01:00
2015-10-27 14:25:58 +01:00
2015-10-27 14:25:58 +01:00
2015-11-10 17:36:52 +01:00
2015-11-03 00:02:00 +01:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:45:53 +01:00
2015-11-03 13:04:06 +01:00
2015-11-03 14:09:03 +03:00
2015-10-27 14:24:58 +01:00
2015-10-27 14:24:58 +01:00
2015-10-26 01:24:38 +01:00
2015-08-26 21:04:38 +02:00
2015-11-03 17:45:11 +01:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:45:53 +01:00
2015-09-29 21:55:51 +02:00
2015-09-01 17:20:56 +02:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:25:55 +01:00
2015-10-06 17:47:00 +02:00
2015-10-06 17:47:00 +02:00
2015-10-27 13:45:53 +01:00
2015-10-07 16:37:25 +09:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:57 +01:00
2015-09-01 23:52:27 +02:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:57 +01:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:56 +01:00
2015-10-27 13:25:56 +01:00
2015-11-03 17:45:11 +01:00
2015-11-03 17:45:11 +01:00
2015-10-27 13:45:53 +01:00
2015-10-24 23:03:49 +02:00
2015-10-27 13:25:57 +01:00
2015-10-27 13:25:57 +01:00
2015-11-06 13:00:02 +01:00
2015-10-27 13:25:56 +01:00
2015-11-10 17:31:31 +01:00
2015-11-10 17:31:31 +01:00
2015-10-27 13:25:56 +01:00
2015-11-10 19:33:06 -05:00
2015-11-10 19:33:06 -05:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:57 +01:00
2015-11-02 11:21:25 +01:00
2015-11-02 11:21:25 +01:00
2015-10-27 14:57:44 +01:00
2015-11-03 17:45:11 +01:00
2015-10-24 23:05:02 +02:00
2015-11-10 17:31:30 +01:00
2015-11-09 16:40:35 +01:00
2015-10-27 13:25:57 +01:00
2015-10-27 13:25:57 +01:00
2015-10-27 13:45:53 +01:00
2015-10-27 13:25:56 +01:00
2015-10-24 23:05:02 +02:00