summaryrefslogtreecommitdiff
path: root/bin/md5
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-04 04:56:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-04 04:56:51 +0000
commitb86e078b5ef25cf60dd0d22506ea8958336956af (patch)
tree044efcdde4f7eac973721714ec42f156b4407b89 /bin/md5
parent6c904e098d30bc83a676b9ddaf78edc448535e4c (diff)
Repair tame() error check to be == -1
Diffstat (limited to 'bin/md5')
-rw-r--r--bin/md5/md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c
index 63751cb1e18..e22c352f62d 100644
--- a/bin/md5/md5.c
+++ b/bin/md5/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.80 2015/10/03 03:28:35 deraadt Exp $ */
+/* $OpenBSD: md5.c,v 1.81 2015/10/04 04:56:50 deraadt Exp $ */
/*
* Copyright (c) 2001,2003,2005-2007,2010,2013,2014
@@ -314,7 +314,7 @@ main(int argc, char **argv)
if (ofile == NULL)
ofile = stdout;
- if (tame("stdio rpath", NULL) != 0)
+ if (tame("stdio rpath", NULL) == -1)
err(1, "tame");
/* Most arguments are mutually exclusive */