From 7504c664028a3df8bbf5ba682c8b39a8fc05aae2 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 14 Oct 2007 06:54:06 +0000 Subject: [PATCH] windows-pioctl-20071014 do not parse an intermediary path if the path length is 0 --- src/WINNT/afsd/cm_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index d492fadbe..4a490eaf8 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -347,7 +347,7 @@ long cm_ParseIoctlPath(smb_ioctl_t *ioctlp, cm_user_t *userp, cm_req_t *reqp, } lastComponent = strrchr(relativePath, '\\'); - if (lastComponent && strlen(relativePath) > 1) { + if (lastComponent && (relativePath - lastComponent) > 1 && strlen(relativePath) > 1) { *lastComponent = '\0'; lastComponent++; -- 2.39.5