]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails"
authorDina Fine <dina@exanet.com>
Tue, 18 Nov 2008 20:43:26 +0000 (12:43 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:58 +0000 (10:11 +0100)
(cherry picked from commit cc97e2a0d51f52a79982ac265f073d3829c1357a)

source/smbd/notify.c

index 6e244663f28c26e0185f010ab0c844b6db8367b0..b017237f895dd01c834860c66788744107874b6a 100644 (file)
@@ -349,6 +349,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;