Fix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails"
authorDina Fine <dina@exanet.com>
Tue, 18 Nov 2008 20:45:42 +0000 (12:45 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 18 Nov 2008 20:45:42 +0000 (12:45 -0800)
source3/smbd/notify.c

index 5a517654bf363b2db5a4d9c9e958baf4a464a8c3..2d0811bc1c0a47e8e7cfa6e627d653d3c5486c62 100644 (file)
@@ -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;