Added FIFO restore capability.

This commit is contained in:
Martin Renters 1995-02-10 21:57:02 +00:00
parent 0e229bc0a8
commit d65161535c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6305

View File

@ -545,6 +545,19 @@ extractfile(name)
}
return (linkit(lnkbuf, name, SYMLINK));
case IFIFO:
if (mkfifo(name, mode) < 0) {
fprintf(stderr, "%s: cannot create FIFO: %s\n",
name, strerror(errno));
skipfile();
return (FAIL);
}
(void) chown(name, curfile.dip->di_uid, curfile.dip->di_gid);
(void) chmod(name, mode);
skipfile();
utimes(name, timep);
return (GOOD);
case IFCHR:
case IFBLK:
vprintf(stdout, "extract special file %s\n", name);