Re: [dev] [sbase] [PATCH] tar: support -f - as stdin/out

From: FRIGN <dev_AT_frign.de>
Date: Tue, 12 May 2015 14:29:16 +0200

On Tue, 12 May 2015 12:22:35 +0000
Eivind Uggedal <eivind_AT_uggedal.com> wrote:

Hey Eivind,

are you serious?
> + if (file[0] == '-')
This needs to be
> + if (file[0] == '-' && file[1] == '\0')

In any case, this could've also been done a bit more
axiomatically. That's what the stdin/stdout fd's are
for, fix the FILE*-handling instead of stacking on
top of it.

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Tue May 12 2015 - 14:29:16 CEST

This archive was generated by hypermail 2.3.0 : Tue May 12 2015 - 14:36:09 CEST