GNU bug report logs - #19509
[PATCH] diff: treat fifos as identical

Previous Next

Package: diffutils;

Reported by: Ondřej Svoboda <ondrej <at> svobodasoft.cz>

Date: Sun, 4 Jan 2015 21:24:03 UTC

Severity: normal

Tags: notabug, patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: Ondřej Svoboda <ondrej <at> svobodasoft.cz>, Paul Eggert <eggert <at> cs.ucla.edu>, 19509 <at> debbugs.gnu.org
Subject: bug#19509: [bug-diffutils] bug#19509: bug#19509: [PATCH] diff: treat fifos as identical
Date: Wed, 11 Feb 2015 17:25:42 -0700
[Message part 1 (text/plain, inline)]
On 02/11/2015 04:37 PM, Ondřej Svoboda wrote:
> I also posed this question to myself -- how can we tell two fifos apart?
> Do they by any chance store e.g. a file descriptor when they are being
> used?
> 
> I am not aware of any comparison done to fifos but I may as well be wrong.

fstat() will tell you if two fds are the same fifo - their st_dev and
st_ino will be equal.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 years and 14 days ago.

Previous Next


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