1.1 --- a/libfsserver/lib/pipes/pipe_pager.cc Sun Jan 21 18:50:34 2024 +0100
1.2 +++ b/libfsserver/lib/pipes/pipe_pager.cc Wed Jan 24 00:12:43 2024 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * A pipe pager providing access to pipe content and navigation support.
1.6 *
1.7 - * Copyright (C) 2021, 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022, 2023, 2024 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -161,7 +161,7 @@
1.13
1.14 long PipePager::flush(offset_t populated_size, offset_t *size)
1.15 {
1.16 - if (_mapper != NULL)
1.17 + if (_writing && (_mapper != NULL))
1.18 _mapper->set_data_size(populated_size);
1.19
1.20 *size = _size;