Richard W.M. Jones
68a88a6b0e
mllib: Handle empty files correctly in read_first_line_from_file.
...
The OCaml function ‘input_line’ throws an End_of_file exception if the
end of the file is read before any other input, ie. if the file here
is zero length. Return an empty string instead.
This can produce peculiar errors such as:
$ virt-customize ... --root-password file:/dev/null
libguestfs: uncaught OCaml exception in getopt callback: End_of_file
2017-06-21 18:14:18 +01:00
..
2017-04-04 18:47:37 +01:00
2017-02-14 14:33:11 +00:00
2017-06-20 15:10:48 +01:00
2016-09-19 19:49:51 +02:00
2017-06-21 18:14:18 +01:00
2017-06-21 18:14:18 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2015-05-13 16:45:41 +02:00
2016-07-18 17:05:42 +01:00
2017-04-04 18:47:37 +01:00
2016-07-18 18:20:57 +02:00
2016-07-18 18:20:57 +02:00
2017-01-03 16:48:21 +01:00
2015-05-11 10:26:53 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-02-22 14:55:12 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-02-21 12:08:45 +00:00
2017-02-21 12:08:45 +00:00
2017-02-21 12:08:45 +00:00
2017-02-21 12:08:45 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-02-21 17:23:22 +00:00
2017-03-13 13:21:53 +00:00
2017-03-13 13:21:53 +00:00
2017-03-13 13:21:53 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2016-04-20 22:48:37 +01:00
2016-12-14 17:15:29 +00:00
2017-03-29 18:54:49 +02:00
2016-12-14 17:15:29 +00:00
2016-12-14 17:15:29 +00:00
2017-02-14 15:25:25 +00:00
2017-02-14 15:25:25 +00:00
2017-02-14 15:25:25 +00:00
2017-04-13 10:13:34 +01:00
2017-02-14 15:25:25 +00:00