From 6e8862b6b5ad13a9f4daabd10f29a5670003e3ed Mon Sep 17 00:00:00 2001 From: zodiac Date: Thu, 22 Jan 2009 02:37:46 +0000 Subject: [PATCH] Fix --cert option that was accidentally broken by the new --cert-fd support. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@53 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- shellinabox/shellinaboxd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellinabox/shellinaboxd.c b/shellinabox/shellinaboxd.c index 6a97393..385f63c 100644 --- a/shellinabox/shellinaboxd.c +++ b/shellinabox/shellinaboxd.c @@ -678,7 +678,7 @@ static void parseArgs(int argc, char * const argv[]) { if (!hasSSL) { warn("Ignoring certificate directory, as SSL support is unavailable"); } - if (certificateFd) { + if (certificateFd >= 0) { fatal("Cannot set both a certificate directory and file handle"); } if (certificateDir) {