summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-28 01:46:25 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-28 01:46:25 +0800
commit2343266b6d55f2adf16a6a54d00bcab50511f79e (patch)
treec21473c5a2b529ddc2490798a96d5c75ede3896f /common
parent146fddfdb1876d311653042a5545a729a9692725 (diff)
downloadpttbbs-2343266b6d55f2adf16a6a54d00bcab50511f79e.tar
pttbbs-2343266b6d55f2adf16a6a54d00bcab50511f79e.tar.gz
pttbbs-2343266b6d55f2adf16a6a54d00bcab50511f79e.tar.bz2
pttbbs-2343266b6d55f2adf16a6a54d00bcab50511f79e.tar.lz
pttbbs-2343266b6d55f2adf16a6a54d00bcab50511f79e.tar.xz
pttbbs-2343266b6d55f2adf16a6a54d00bcab50511f79e.tar.zst
pttbbs-2343266b6d55f2adf16a6a54d00bcab50511f79e.zip
* logic typo
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4707 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common')
-rw-r--r--common/sys/file.c2
1 files changed, 1 insertions, 1 deletions
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