This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new d4644c32f9 Update another comment to align with code
d4644c32f9 is described below

commit d4644c32f9c311da77390657bf1bfaa0281387e6
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 28 09:24:15 2026 +0100

    Update another comment to align with code
---
 java/org/apache/catalina/servlets/WebdavServlet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/servlets/WebdavServlet.java 
b/java/org/apache/catalina/servlets/WebdavServlet.java
index fba2580161..d4f2a248ba 100644
--- a/java/org/apache/catalina/servlets/WebdavServlet.java
+++ b/java/org/apache/catalina/servlets/WebdavServlet.java
@@ -2047,7 +2047,7 @@ public class WebdavServlet extends DefaultServlet 
implements PeriodicEventListen
                 if (parentLock.hasExpired()) {
                     resourceLocks.remove(parentPath);
                 } else {
-                    // parentPath == currentPath is a check for the first loop
+                    // parentPath == path is a check for the first loop
                     if (parentPath == path || parentLock.depth > 0) {
                         if (parentLock.isExclusive()) {
                             return !ifHeader.contains(":" + parentLock.token + 
">") ||


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to