=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ypcat/ypcat.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- src/usr.bin/ypcat/ypcat.c 2015/10/18 17:53:51 1.19 +++ src/usr.bin/ypcat/ypcat.c 2015/11/11 02:52:46 1.20 @@ -1,4 +1,4 @@ -/* $OpenBSD: ypcat.c,v 1.19 2015/10/18 17:53:51 miod Exp $ */ +/* $OpenBSD: ypcat.c,v 1.20 2015/11/11 02:52:46 deraadt Exp $ */ /* * Copyright (c) 1992, 1993, 1996 Theo de Raadt @@ -88,8 +88,10 @@ extern int optind; int notrans, c, r, i; - if (pledge("stdio rpath inet getpw", NULL) == -1) + if (pledge("stdio rpath inet getpw", NULL) == -1) { perror("pledge"); + exit(1); + } notrans = key = 0; while ((c=getopt(argc, argv, "xd:kt")) != -1)