# # patch "ChangeLog" # from [a05988fb0eeaad0919bbc29cf971f73d931df9bb] # to [418536824c01d013b8d0412af3fe2fb0dd3426e6] # # patch "file_io.cc" # from [c845a1adfff9ce37788124ef8e5c1b75869b0157] # to [08ce2fc2b87b2852f9b67a80af939955984de018] # # patch "tests/t_rcfile_required.at" # from [a40f859a2a0e0802c467ad5444656ba6ccbd885e] # to [00e9a1027a39508c944565768b86961b49f9cdf0] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,8 @@ +2005-05-03 Nathaniel Smith + + * file_io.cc (read_data_for_command_line): Check that file exists, + if reading a file. + 2005-05-04 Matthew Gregan * configure.ac: Add TYPE_SOCKLEN_T function from the Autoconf --- file_io.cc +++ file_io.cc @@ -470,7 +470,10 @@ if (path() == "-") read_data_stdin(dat); else - read_data_impl(localized(path), dat); + { + N(fs::exists(localized(path)), F("file '%s' does not exist") % path); + read_data_impl(localized(path), dat); + } } --- tests/t_rcfile_required.at +++ tests/t_rcfile_required.at