[haiku-commits] r40082 - haiku/trunk/src/system/kernel/fs

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 3 Jan 2011 00:46:17 +0100 (CET)

Author: bonefish
Date: 2011-01-03 00:46:17 +0100 (Mon, 03 Jan 2011)
New Revision: 40082
Changeset: http://dev.haiku-os.org/changeset/40082

Modified:
   haiku/trunk/src/system/kernel/fs/vfs.cpp
Log:
common_rename(): Fixed incorrect check (array address instead of first
element, CID 4077).


Modified: haiku/trunk/src/system/kernel/fs/vfs.cpp
===================================================================
--- haiku/trunk/src/system/kernel/fs/vfs.cpp    2011-01-02 23:32:47 UTC (rev 
40081)
+++ haiku/trunk/src/system/kernel/fs/vfs.cpp    2011-01-02 23:46:17 UTC (rev 
40082)
@@ -6227,7 +6227,7 @@
                goto err2;
        }
 
-       if (fromName[0] == '\0' || toName == '\0'
+       if (fromName[0] == '\0' || toName[0] == '\0'
                || !strcmp(fromName, ".") || !strcmp(fromName, "..")
                || !strcmp(toName, ".") || !strcmp(toName, "..")
                || (fromVnode == toVnode && !strcmp(fromName, toName))) {


Other related posts:

  • » [haiku-commits] r40082 - haiku/trunk/src/system/kernel/fs - ingo_weinhold