diff options
author | John Wiegley <johnw@newartisans.com> | 2013-01-17 12:36:17 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2013-01-17 12:36:17 -0800 |
commit | 83bd3234d32d7a82d583e4f50f8f90837aa15a93 (patch) | |
tree | 3690c573e3c02dad77874a3e76c32344f5eb0be6 /src/session.cc | |
parent | 74a1f63efbb5703e417e05466aca2ae51268862e (diff) | |
parent | 3fe2ef59566ef679d9de58e5f9454b7443d9153a (diff) | |
download | fork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.tar.gz fork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.tar.bz2 fork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.zip |
Merge pull request #123 from kljohann/bug.788
change handling of standard input
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.cc b/src/session.cc index b6153203..f047a540 100644 --- a/src/session.cc +++ b/src/session.cc @@ -143,7 +143,7 @@ std::size_t session_t::read_data(const string& master_account) } foreach (const path& pathname, HANDLER(file_).data_files) { - if (pathname == "-") { + if (pathname == "-" || pathname == "/dev/stdin") { // To avoid problems with stdin and pipes, etc., we read the entire // file in beforehand into a memory buffer, and then parcel it out // from there. |