[PATCH] cleanup patches
Volker Lendecke
Volker.Lendecke at SerNet.DE
Mon Feb 9 08:14:54 MST 2015
Hi!
Review&push appreciated!
Thanks,
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 628be1568e63a8d9993887011359aa7a92c740ee Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 9 Feb 2015 14:42:08 +0000
Subject: [PATCH 1/2] smbd: Make "check_veto_path" static
Signed-off-by: Volker Lendecke <vl at samba.org>
---
source3/smbd/filename.c | 2 +-
source3/smbd/proto.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index e632796..76db5b5 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -1015,7 +1015,7 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
Ensure a path is not vetod.
****************************************************************************/
-NTSTATUS check_veto_path(connection_struct *conn, const char *name)
+static NTSTATUS check_veto_path(connection_struct *conn, const char *name)
{
if (IS_VETO_PATH(conn, name)) {
/* Is it not dot or dot dot. */
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 121682c..26a199c 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -327,7 +327,6 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
const char *orig_path,
struct smb_filename **smb_fname,
uint32_t ucf_flags);
-NTSTATUS check_veto_path(connection_struct *conn, const char *name);
NTSTATUS check_name(connection_struct *conn, const char *name);
int get_real_filename(connection_struct *conn, const char *path,
const char *name, TALLOC_CTX *mem_ctx,
--
1.7.9.5
From eb97f9617fe74157367c7ae193fc5b4449359887 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 9 Feb 2015 14:42:23 +0000
Subject: [PATCH 2/2] smbd: Fix a typo
http://www.oxfordlearnersdictionaries.com/definition/english/veto_2 says it's
vetoed, not vetod
Signed-off-by: Volker Lendecke <vl at samba.org>
---
source3/smbd/filename.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 76db5b5..0fdc09d 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -1012,7 +1012,7 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
}
/****************************************************************************
- Ensure a path is not vetod.
+ Ensure a path is not vetoed.
****************************************************************************/
static NTSTATUS check_veto_path(connection_struct *conn, const char *name)
--
1.7.9.5
More information about the samba-technical
mailing list