From: Garrett C. <yab...@us...> - 2010-02-05 16:05:49
|
Update of /cvsroot/ltp/ltp/testcases/kernel/fs/acls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv15331/acls Modified Files: acl_file_test.c Log Message: Whitespace only change. Signed-off-by: Garrett Cooper <yan...@gm...> Index: acl_file_test.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/acls/acl_file_test.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** acl_file_test.c 26 Feb 2009 12:14:52 -0000 1.5 --- acl_file_test.c 5 Feb 2010 16:05:39 -0000 1.6 *************** *** 30,48 **** } ! if(-1 == (s = flistxattr(fd, list, 1024)) ) { ! perror("flistxattr"); ! return 1; ! } ! if(s == 0) { ! printf("No xattrs defined for %s, further testcase useless\n",file); ! return 1; ! } ! tok = strtok(list, "\0"); ! s = fgetxattr(fd, tok, (void*)value, 1024); ! if(s == -1) { ! perror("fgetxattr"); ! return 1; ! } ! s = fsetxattr(fd, tok, (void*)value, s, 0); if (s == -1) { --- 30,48 ---- } ! if(-1 == (s = flistxattr(fd, list, 1024)) ) { ! perror("flistxattr"); ! return 1; ! } ! if(s == 0) { ! printf("No xattrs defined for %s, further testcase useless\n",file); ! return 1; ! } ! tok = strtok(list, "\0"); ! s = fgetxattr(fd, tok, (void*)value, 1024); ! if(s == -1) { ! perror("fgetxattr"); ! return 1; ! } ! s = fsetxattr(fd, tok, (void*)value, s, 0); if (s == -1) { *************** *** 60,67 **** #endif if (s == -1) { ! printf ("User unable to remove extended attributes file %s !\n", argv[1]); ! printf("errno = %i\n", errno); ! rc = 1; ! } close (fd); --- 60,67 ---- #endif if (s == -1) { ! printf ("User unable to remove extended attributes file %s !\n", argv[1]); ! printf("errno = %i\n", errno); ! rc = 1; ! } close (fd); |