summaryrefslogtreecommitdiffstats
path: root/source/smbd/vfs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-31 13:09:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:34 -0500
commit06f58096e3785d0e2e0b9f2053d4975e44568e15 (patch)
tree5d9da1a73be1d9150315601f836c3583f1904827 /source/smbd/vfs.c
parent4a99fa266672e2989f9e62baf9090eb45df750ea (diff)
downloadsamba-06f58096e3785d0e2e0b9f2053d4975e44568e15.tar.gz
samba-06f58096e3785d0e2e0b9f2053d4975e44568e15.tar.xz
samba-06f58096e3785d0e2e0b9f2053d4975e44568e15.zip
r21082: Make canonicalize_path static to service.c -- we do have conn->connectpath
Diffstat (limited to 'source/smbd/vfs.c')
-rw-r--r--source/smbd/vfs.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c
index 643c48cd27c..df81b2936d4 100644
--- a/source/smbd/vfs.c
+++ b/source/smbd/vfs.c
@@ -792,31 +792,6 @@ char *vfs_GetWd(connection_struct *conn, char *path)
return (path);
}
-BOOL canonicalize_path(connection_struct *conn, pstring path)
-{
-#ifdef REALPATH_TAKES_NULL
- char *resolved_name = SMB_VFS_REALPATH(conn,path,NULL);
- if (!resolved_name) {
- return False;
- }
- pstrcpy(path, resolved_name);
- SAFE_FREE(resolved_name);
- return True;
-#else
-#ifdef PATH_MAX
- char resolved_name_buf[PATH_MAX+1];
-#else
- pstring resolved_name_buf;
-#endif
- char *resolved_name = SMB_VFS_REALPATH(conn,path,resolved_name_buf);
- if (!resolved_name) {
- return False;
- }
- pstrcpy(path, resolved_name);
- return True;
-#endif /* REALPATH_TAKES_NULL */
-}
-
/*******************************************************************
Reduce a file name, removing .. elements and checking that
it is below dir in the heirachy. This uses realpath.