Mail Archives: djgpp-workers/1998/01/28/09:13:05
On Wed, 28 Jan 1998, Tom Demmer wrote:
> > Is the above description correct for Unix? If it is, maybe we need to
> > set st_rdev, at least to the same value as st_dev? (I needed to say
> > "foo.st_rdev = foo.st_dev" in the `tar' sources to make it work.)
> >
> This should be necessary only if if foo stats a special device, at
> least after the above definition. Can you confirm that?
Yes, this entire issue of st_rdev is only relevant to devices like
/dev/tty, /dev/null and others. That is when I saw GNU tar and cpio
check the st_rdev field.
- Raw text -