From 7f0db75fb0f24873577dcb758a2ecee74fdc4297 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 12 Sep 2007 21:48:20 +0000 Subject: r25117: The mega-patch Jerry was waiting for. Remove all pstrings from the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy. --- source/lib/system.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/lib/system.c') diff --git a/source/lib/system.c b/source/lib/system.c index 9cef818fab2..6c79b362a86 100644 --- a/source/lib/system.c +++ b/source/lib/system.c @@ -573,7 +573,11 @@ char *sys_getwd(char *s) { char *wd; #ifdef HAVE_GETCWD +#ifdef PATH_MAX + wd = (char *)getcwd(s, PATH_MAX); +#else wd = (char *)getcwd(s, sizeof (pstring)); +#endif #else wd = (char *)getwd(s); #endif -- cgit