|
From: | Tim Kientzle |
Subject: | Re: [Bug-cpio] Re: Bug#565474: cpio makes device nodes into hard links when copying out of a cramfs image |
Date: | Sun, 17 Jan 2010 14:33:24 -0800 |
User-agent: | Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.21) Gecko/20090601 SeaMonkey/1.1.16 |
Carl Miller wrote:
On Sat, Jan 16, 2010 at 05:09:45AM +0000, Clint Adams wrote:You mean something like this? - && (d->header.c_dev_min == min) ) + && (d->header.c_dev_min == min) + && ((d->header.c_mode & CP_IFBLK) != CP_IFBLK) + && ((d->header.c_mode & CP_IFCHR) != CP_IFCHR) )
These tests should look like: (d->header.c_mode & CP_IFMT) != CP_IFBLK Note the use of CP_IFMT to mask the file type (which is a four-bit field). Cheers, Tim
[Prev in Thread] | Current Thread | [Next in Thread] |