From 2343266b6d55f2adf16a6a54d00bcab50511f79e Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 27 Jun 2009 17:46:25 +0000 Subject: * logic typo git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4707 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/sys') diff --git a/common/sys/file.c b/common/sys/file.c index b86899dd..da451280 100644 --- a/common/sys/file.c +++ b/common/sys/file.c @@ -210,7 +210,7 @@ Rename(const char *src, const char *dst) return 0; // prevent malicious shell escapes - if (strchr(src, ';') || !strchr(dst, ';')) + if (strchr(src, ';') || strchr(dst, ';')) return -1; // because we need the return value, override the signal handler -- cgit v1.2.3