CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2017/06/10 12:14:10
Modified files: usr.bin/nc : netcat.c Log message: If -P and -c were given, a second pledge call tried to add "rpath" to the first pledge promises, so nc exited with EPERM. To fix this, merge the pledge of the Pflag && usetls case into the first pledge block. This allows us to get rid of the second pledge block and thus to simplify the logic a bit. While there, add a missing blank to an error string. Joint effort by the #openbsd-daily code reading group, problem found and initial patch by <rain1 openmailbox org>. ok awolk