SCCS-vsn: usr.bin/xinstall/install.1 6.13
SCCS-vsn: usr.bin/xinstall/xinstall.c 5.28
.\"
.\" %sccs.include.redist.roff%
.\"
.\"
.\" %sccs.include.redist.roff%
.\"
-.\" @(#)install.1 6.12 (Berkeley) %G%
+.\" @(#)install.1 6.13 (Berkeley) %G%
-utility always attempts to preserve the file flags.
+utility always attempts to preserve the file flags with the exception
+of the NODUMP flag which is always turned off.
.Pp
Installing
.Pa /dev/null
.Pp
Installing
.Pa /dev/null
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)xinstall.c 5.27 (Berkeley) %G%";
+static char sccsid[] = "@(#)xinstall.c 5.28 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
err("%s: %s", to_name, strerror(serrno));
}
err("%s: %s", to_name, strerror(serrno));
}
- /* Always preserve the flags. */
- if (fchflags(to_fd, from_sb.st_flags)) {
+ /* Always preserve the flags, except for the dump flag. */
+ if (fchflags(to_fd, from_sb.st_flags & ~NODUMP)) {
serrno = errno;
(void)unlink(to_name);
err("%s: %s", to_name, strerror(serrno));
serrno = errno;
(void)unlink(to_name);
err("%s: %s", to_name, strerror(serrno));