summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw_dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper/smbw_dir.c')
-rw-r--r--source3/smbwrapper/smbw_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbwrapper/smbw_dir.c b/source3/smbwrapper/smbw_dir.c
index 6453c55871..543a7a77ba 100644
--- a/source3/smbwrapper/smbw_dir.c
+++ b/source3/smbwrapper/smbw_dir.c
@@ -415,7 +415,7 @@ int smbw_chdir(const char *name)
DEBUG(4,("set SMBW_CWD to %s\n", cwd));
pstrcpy(smbw_cwd, cwd);
- if (setenv(SMBW_PWD_ENV, smbw_cwd, 1)) {
+ if (smbw_setenv(SMBW_PWD_ENV, smbw_cwd)) {
DEBUG(4,("setenv failed\n"));
}