getpass() opens /dev/tty RW so it can write the prompt.
ok deraadt@
-/* $OpenBSD: encrypt.c,v 1.41 2015/10/10 17:59:15 deraadt Exp $ */
+/* $OpenBSD: encrypt.c,v 1.42 2015/10/10 18:14:20 doug Exp $ */
/*
* Copyright (c) 1996, Jason Downs. All rights reserved.
char *extra = NULL; /* Store login class or number of rounds */
const char *errstr;
- if (pledge("stdio rpath tty", NULL) == -1)
+ if (pledge("stdio rpath wpath tty", NULL) == -1)
err(1, "pledge");
while ((opt = getopt(argc, argv, "pb:c:")) != -1) {