But in other cases, we can use tame "stdio rpath wpath cpath fattr", including
for the historical -r option.
-/* $OpenBSD: cp.c,v 1.38 2015/05/07 17:32:20 guenther Exp $ */
+/* $OpenBSD: cp.c,v 1.39 2015/10/07 15:44:58 deraadt Exp $ */
/* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */
/*
argc -= optind;
argv += optind;
+ /* unfortunately, -R will use mkfifo & mknod */
+ if (Rflag == 0)
+ if (tame("stdio rpath wpath cpath fattr", NULL) == -1)
+ err(1, "tame");
+
if (argc < 2)
usage();