From: Dina Fine Date: Tue, 18 Nov 2008 20:45:42 +0000 (-0800) Subject: Fix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails" X-Git-Tag: samba-4.0.0alpha6~480^2~188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e62bb39de93433dfeb7f822ec1026da7ed643f4;p=thirdparty%2Fsamba.git Fix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails" --- diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 5a517654bf3..2d0811bc1c0 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -339,6 +339,9 @@ void notify_fname(connection_struct *conn, uint32 action, uint32 filter, { char *fullpath; + if (path[0] == '.' && path[1] == '/') { + path += 2; + } if (asprintf(&fullpath, "%s/%s", conn->connectpath, path) == -1) { DEBUG(0, ("asprintf failed\n")); return;