summaryrefslogtreecommitdiff
path: root/source3/lib/substitute.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-09-04 10:15:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:29 -0500
commitff0947fbed841065fce85c64ff4b2a2e8f24f056 (patch)
treedf5c9cadb1d89cc0ee6b5fdf712743443b209d7c /source3/lib/substitute.c
parentfaefb22c61568c678476b4dad36bdc5ce3afb499 (diff)
downloadsamba-ff0947fbed841065fce85c64ff4b2a2e8f24f056.tar.gz
samba-ff0947fbed841065fce85c64ff4b2a2e8f24f056.tar.bz2
samba-ff0947fbed841065fce85c64ff4b2a2e8f24f056.zip
r24949: Remove some static buffers
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r--source3/lib/substitute.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index 64b343fabb..955557f40c 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -263,7 +263,7 @@ struct api_longvar {
char* (*fn)( void );
};
-struct api_longvar longvar_table[] = {
+static struct api_longvar longvar_table[] = {
{ "DomainSID", longvar_domainsid },
{ NULL, NULL }
};
@@ -339,7 +339,7 @@ static char *realloc_expand_longvar(char *str, char *p)
static char *automount_path(const char *user_name)
{
- static pstring server_path;
+ pstring server_path;
/* use the passwd entry as the default */
/* this will be the default if WITH_AUTOMOUNT is not used or fails */
@@ -368,7 +368,7 @@ static char *automount_path(const char *user_name)
DEBUG(4,("Home server path: %s\n", server_path));
- return server_path;
+ return talloc_strdup(talloc_tos(), server_path);
}
/*******************************************************************
@@ -379,7 +379,7 @@ static char *automount_path(const char *user_name)
static const char *automount_server(const char *user_name)
{
- static pstring server_name;
+ pstring server_name;
const char *local_machine_name = get_local_machine_name();
/* use the local machine name as the default */
@@ -405,7 +405,7 @@ static const char *automount_server(const char *user_name)
DEBUG(4,("Home server: %s\n", server_name));
- return server_name;
+ return talloc_strdup(talloc_tos(), server_name);
}
/****************************************************************************