diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-10 22:31:34 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-10 22:31:34 -0800 |
commit | 2b3c44e4fb980335c22abcc07a88f32b13e5918f (patch) | |
tree | 47eedc95e86696e59a7ce650b5a3eb03a8a1be9e /source3/smbd/vfs.c | |
parent | 41ae2a0a17d3f67252e81a6db730f87ce26fb939 (diff) | |
download | samba-2b3c44e4fb980335c22abcc07a88f32b13e5918f.tar.gz samba-2b3c44e4fb980335c22abcc07a88f32b13e5918f.tar.xz samba-2b3c44e4fb980335c22abcc07a88f32b13e5918f.zip |
Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
(This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r-- | source3/smbd/vfs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 78939881d35..628d2eec4b9 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -774,11 +774,7 @@ static void array_promote(char *array,int elsize,int element) char *vfs_GetWd(TALLOC_CTX *ctx, connection_struct *conn) { -#ifdef PATH_MAX char s[PATH_MAX+1]; -#else - pstring s; -#endif static bool getwd_cache_init = False; SMB_STRUCT_STAT st, st2; int i; @@ -893,11 +889,7 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname) #ifdef REALPATH_TAKES_NULL bool free_resolved_name = True; #else -#ifdef PATH_MAX char resolved_name_buf[PATH_MAX+1]; -#else - pstring resolved_name_buf; -#endif bool free_resolved_name = False; #endif char *resolved_name = NULL; @@ -969,11 +961,7 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname) return NT_STATUS_NO_MEMORY; } #else -#ifdef PATH_MAX safe_strcpy(resolved_name_buf, tmp_fname, PATH_MAX); -#else - pstrcpy(resolved_name_buf, tmp_fname); -#endif resolved_name = resolved_name_buf; #endif TALLOC_FREE(tmp_ctx); |