summaryrefslogtreecommitdiff
path: root/source/lib/substitute.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/substitute.c')
-rw-r--r--source/lib/substitute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index e7d620db16a..ce15fcd8a16 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -98,7 +98,7 @@ static char *automount_path(char *user_name)
/* use the passwd entry as the default */
/* this will be the default if WITH_AUTOMOUNT is not used or fails */
/* pstrcpy() copes with get_user_home_dir() returning NULL */
- pstrcpy(server_path, get_user_home_dir(user_name));
+ pstrcpy(server_path, get_unixhome_dir(user_name));
#if (defined(HAVE_NETGROUP) && defined (WITH_AUTOMOUNT))
@@ -195,7 +195,7 @@ static void standard_sub_advanced(int snum, char *user, char *connectpath, gid_t
break;
case 'N' : string_sub(p,"%N", automount_server(user),l); break;
case 'H':
- if ((home = get_user_home_dir(user))) {
+ if ((home = get_unixhome_dir(user))) {
string_sub(p,"%H",home, l);
} else {
p += 2;