GNU bug report logs - #33761
Allow split to write into FIFOs

Previous Next

Package: coreutils;

Reported by: scottworley <at> scottworley.com

Date: Sat, 15 Dec 2018 15:33:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: scottworley <at> scottworley.com
To: bug-coreutils <at> gnu.org
Subject: Allow split to write into FIFOs
Date: Sat, 15 Dec 2018 00:00:18 -0800
[Message part 1 (text/plain, inline)]
TL;DR: Attached: Patch to allow split to write into FIFOs.



Currently, split fails when its output files are FIFOs because
FIFOs cannot be ftruncate()d.  Split exits with this error message:

  split: xaa: error truncating: Invalid argument

The attached patch causes split to only attempt the ftruncate when its
output is a regular file.
[coreutils-split-into-fifos.patch (text/x-diff, attachment)]

This bug report was last modified 6 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.