From e3dfc9d95aed6b58ee6880f9a84f289e88260061 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 30 Apr 1998 00:51:11 +0000 Subject: [PATCH] 1998-04-29 Miguel de Icaza * tar.c (read_header): Mark regular files with S_IFREG. --- vfs/ChangeLog | 4 ++++ vfs/tar.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 604993742..2fec9cf33 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,7 @@ +1998-04-29 Miguel de Icaza + + * tar.c (read_header): Mark regular files with S_IFREG. + Tue Apr 28 06:06:03 1998 Norbert Warmuth * extfs.c (extfs_open, extfs_close): Changed my_system(1,...) to diff --git a/vfs/tar.c b/vfs/tar.c index efc410820..372611d7a 100644 --- a/vfs/tar.c +++ b/vfs/tar.c @@ -689,7 +689,8 @@ static int read_header (struct tarfs_archive *archive, int tard) inode->mode |= S_IFBLK; } else if (header->header.linkflag == LF_FIFO) { inode->mode |= S_IFIFO; - } + } else + inode->mode |= S_IFREG; inode->rdev = 0; if (!strcmp (header->header.magic, TMAGIC)) {