=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/Attic/fsmagic.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/file/Attic/fsmagic.c 2005/05/18 03:11:18 1.11 --- src/usr.bin/file/Attic/fsmagic.c 2008/05/08 01:40:56 1.12 *************** *** 1,4 **** ! /* $OpenBSD: fsmagic.c,v 1.11 2005/05/18 03:11:18 jaredy Exp $ */ /* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; --- 1,4 ---- ! /* $OpenBSD: fsmagic.c,v 1.12 2008/05/08 01:40:56 chl Exp $ */ /* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; *************** *** 58,64 **** #undef HAVE_MAJOR #ifndef lint ! FILE_RCSID("@(#)$Id: fsmagic.c,v 1.11 2005/05/18 03:11:18 jaredy Exp $") #endif /* lint */ protected int --- 58,64 ---- #undef HAVE_MAJOR #ifndef lint ! FILE_RCSID("@(#)$Id: fsmagic.c,v 1.12 2008/05/08 01:40:56 chl Exp $") #endif /* lint */ protected int *************** *** 90,97 **** file_error(ms, errno, "cannot stat `%s'", fn); return -1; } ! if (file_printf(ms, "cannot open (%s)", ! strerror(errno)) == -1) return -1; return 1; } --- 90,97 ---- file_error(ms, errno, "cannot stat `%s'", fn); return -1; } ! if (file_printf(ms, "cannot open `%s' (%s)", ! fn, strerror(errno)) == -1) return -1; return 1; } *************** *** 182,187 **** --- 182,189 ---- /* TODO add code to handle V7 MUX and Blit MUX files */ #ifdef S_IFIFO case S_IFIFO: + if((ms->flags & MAGIC_DEVICES) != 0) + break; if (file_printf(ms, "fifo (named pipe)") == -1) return -1; return 1;