From: Robert W. <ro...@us...> - 2004-10-28 18:53:48
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/creat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25136/creat Modified Files: creat06.c Log Message: Applied long path name patch from Michael Vieths: ================================================================= I was running ltp-20031106 and encountered directory length issues in symlink01, execve03, and creat06. If LTP is run in a directory with a long path name, these tests will produce unexpected results. I've attached patches to correct this, by increasing buffer size to 1000 in creat06 (from 40) and symlink01 (from 100) and by altering calls to getcwd in symlink01.c. I tested them with ltp-20041007 to make sure they'd apply. -- Michael Vieths ================================================================= Index: creat06.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/creat/creat06.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** creat06.c 25 Aug 2004 15:17:15 -0000 1.6 --- creat06.c 28 Oct 2004 18:53:39 -0000 1.7 *************** *** 86,90 **** #define MODE1 0444 #define MODE2 0666 ! #define NSIZE 40 char long_name[] = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyz"; --- 86,90 ---- #define MODE1 0444 #define MODE2 0666 ! #define NSIZE 1000 char long_name[] = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyzabcdefghijklmnopqrstmnopqrstuvwxyz"; |