Hi!
> +     memset(longpathname, 'a', PATH_MAX + 2);

I've changed this to:

memset(longpathname, 'a', PATH_MAX + 1);

So that longpathname is zero terminated sting.

> -     /* resume original working directory */
> -     chdir(cwd);
> +     SAFE_TOUCH(cleanup, TESTFILE2, FILE_MODE, NULL);
>  
> -     return (strlen(longpath) >= PATH_MAX) ? 0 : -1;
> +#if !defined(UCLINUX)
> +     test_cases[4].dir = SAFE_MMAP(cleanup, 0, 1, PROT_NONE,
> +             MAP_PRIVATE_EXCEPT_UCLINUX | MAP_ANONYMOUS, 0, 0);
> +#endif

And changed the MAP_PRIVATE_EXCEPT_UCLINUX to just MAP_PRIVATE, because
it's in #if !defined(UCLINUX) block anyway.

And pushed, thanks.

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to