=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/xinstall/xinstall.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/xinstall/xinstall.c 1997/01/17 07:13:54 1.11 --- src/usr.bin/xinstall/xinstall.c 1997/03/07 01:57:08 1.12 *************** *** 1,4 **** ! /* $OpenBSD: xinstall.c,v 1.11 1997/01/17 07:13:54 millert Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: xinstall.c,v 1.12 1997/03/07 01:57:08 millert Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* *************** *** 44,50 **** #if 0 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93"; #endif ! static char rcsid[] = "$OpenBSD: xinstall.c,v 1.11 1997/01/17 07:13:54 millert Exp $"; #endif /* not lint */ #include --- 44,50 ---- #if 0 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93"; #endif ! static char rcsid[] = "$OpenBSD: xinstall.c,v 1.12 1997/03/07 01:57:08 millert Exp $"; #endif /* not lint */ #include *************** *** 383,391 **** */ if (fchflags(to_fd, flags & SETFLAGS ? fset : from_sb.st_flags & ~UF_NODUMP)) { ! serrno = errno; ! (void)unlink(to_name); ! errx(EX_OSERR, "%s: chflags: %s", to_name, strerror(serrno)); } (void)close(to_fd); --- 383,390 ---- */ if (fchflags(to_fd, flags & SETFLAGS ? fset : from_sb.st_flags & ~UF_NODUMP)) { ! if (errno != EOPNOTSUPP || (from_sb.st_flags & ~UF_NODUMP) != 0) ! warnx("%s: chflags: %s", to_name, strerror(errno)); } (void)close(to_fd);