Note that check_parent_exists() doesn't change the contents of smb_fname (add const).
authorJeremy Allison <jra@samba.org>
Mon, 4 Apr 2011 17:15:16 +0000 (10:15 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 4 Apr 2011 17:15:16 +0000 (10:15 -0700)
source3/smbd/filename.c

index 912e3a41f3c1bbcd5e914fe1862a5b066b3977ed..3bab2c8971dcc2789133b46a380122bb447e219f 100644 (file)
@@ -114,7 +114,7 @@ static NTSTATUS check_for_dot_component(const struct smb_filename *smb_fname)
 static NTSTATUS check_parent_exists(TALLOC_CTX *ctx,
                                connection_struct *conn,
                                bool posix_pathnames,
-                               struct smb_filename *smb_fname,
+                               const struct smb_filename *smb_fname,
                                char **pp_dirpath,
                                char **pp_start)
 {