=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/uniq/uniq.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/uniq/uniq.c 2015/10/04 04:56:50 1.21 --- src/usr.bin/uniq/uniq.c 2015/10/09 01:37:09 1.22 *************** *** 1,4 **** ! /* $OpenBSD: uniq.c,v 1.21 2015/10/04 04:56:50 deraadt Exp $ */ /* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: uniq.c,v 1.22 2015/10/09 01:37:09 deraadt Exp $ */ /* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */ /* *************** *** 61,68 **** int ch; char *prevline, *thisline; ! if (tame("stdio rpath wpath cpath", NULL) == -1) ! err(1, "tame"); obsolete(argv); while ((ch = getopt(argc, argv, "cdf:s:u")) != -1) { --- 61,68 ---- int ch; char *prevline, *thisline; ! if (pledge("stdio rpath wpath cpath", NULL) == -1) ! err(1, "pledge"); obsolete(argv); while ((ch = getopt(argc, argv, "cdf:s:u")) != -1) { *************** *** 122,129 **** usage(); } ! if (tame("stdio", NULL) == -1) ! err(1, "tame"); prevline = malloc(MAXLINELEN); thisline = malloc(MAXLINELEN); --- 122,129 ---- usage(); } ! if (pledge("stdio", NULL) == -1) ! err(1, "pledge"); prevline = malloc(MAXLINELEN); thisline = malloc(MAXLINELEN);