[PATCH] fix build warning in shadow copy module

Günther Deschner gd at samba.org
Sun Sep 25 01:34:13 UTC 2016


Hi,

please review & push

Guenther
-- 
Günther Deschner                    GPG-ID: 8EE11688
Red Hat                         gdeschner at redhat.com
Samba Team                              gd at samba.org
-------------- next part --------------
From 0722298b1fa73806ae65b7391f8938e8067f604b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd at samba.org>
Date: Sun, 25 Sep 2016 03:30:19 +0200
Subject: [PATCH] s3-modules: fix build warning in vfs shadow copy2 module

Guenther

Signed-off-by: Guenther Deschner <gd at samba.org>
---
 source3/modules/vfs_shadow_copy2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 1f876e7..27c6044 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -194,7 +194,7 @@ static bool shadow_copy2_update_snaplist(struct vfs_handle_struct *handle,
 	 * time.
 	 */
 	if (seconds > 0 || (priv->snaps->snaplist == NULL)) {
-		smb_fname.base_name = ".";
+		smb_fname.base_name = discard_const(".");
 		fsp.fsp_name = &smb_fname;
 
 		ret = shadow_copy2_get_shadow_copy_data(handle, &fsp,
-- 
2.7.4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 201 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160925/180cb8de/signature.sig>


More information about the samba-technical mailing list