/freebsd/contrib/pjdfstest/tests/open/ |
H A D | 06.t | 13 n1=`namegen` 22 expect 0 -u 65534 -g 65534 create ${n1} 0644 24 expect 0 -u 65534 -g 65534 chmod ${n1} 0600 25 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY, 26 expect 0 -u 65534 -g 65534 open ${n1} O_WRONLY, 27 expect 0 -u 65534 -g 65534 open ${n1} O_RDWR, 28 expect 0 -u 65534 -g 65534 chmod ${n1} 0060 29 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY, 30 expect 0 -u 65533 -g 65534 open ${n1} O_WRONLY, 31 expect 0 -u 65533 -g 65534 open ${n1} O_RDWR, [all …]
|
H A D | 07.t | 13 n1=`namegen` 20 expect 0 -u 65534 -g 65534 create ${n1} 0644 22 expect 0 -u 65534 -g 65534 chmod ${n1} 0477 23 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC 24 expect 0 -u 65534 -g 65534 chmod ${n1} 0747 25 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC 26 expect 0 -u 65534 -g 65534 chmod ${n1} 0774 27 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC 29 expect 0 -u 65534 -g 65534 chmod ${n1} 0177 30 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC [all …]
|
/freebsd/contrib/pjdfstest/tests/chmod/ |
H A D | 11.t | 17 n1=`namegen` 26 create_file ${type} ${n1} 27 expect 0 chmod ${n1} 01621 28 expect 01621 stat ${n1} mode 29 expect 0 symlink ${n1} ${n2} 31 expect 01700 stat ${n1} mode 34 expect 0 rmdir ${n1} 36 expect 0 unlink ${n1} 41 create_file ${type} ${n1} 42 expect 0 lchmod ${n1} 01621 [all …]
|
H A D | 07.t | 17 n1=`namegen` 24 expect 0 mkdir ${n1} 0755 25 expect 0 chown ${n1} 65534 65534 27 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644 28 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0642 29 expect 0642 stat ${n1}/${n2} mode 30 expect EPERM -u 65533 -g 65533 chmod ${n1}/${n2} 0641 31 expect 0642 stat ${n1}/${n2} mode 32 expect 0 chown ${n1}/${n2} 0 0 33 expect EPERM -u 65534 -g 65534 chmod ${n1}/${n2} 0641 [all …]
|
H A D | 05.t | 17 n1=`namegen` 23 expect 0 mkdir ${n1} 0755 24 expect 0 chown ${n1} 65534 65534 25 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644 26 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0642 27 expect 0642 -u 65534 -g 65534 stat ${n1}/${n2} mode 28 expect 0 chmod ${n1} 0644 29 expect EACCES -u 65534 -g 65534 chmod ${n1}/${n2} 0620 30 expect 0 chmod ${n1} 0755 31 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0420 [all …]
|
/freebsd/contrib/pjdfstest/tests/chflags/ |
H A D | 11.t | 15 n1=`namegen` 24 create_file ${type} ${n1} 25 expect EPERM -u 65534 -g 65534 chflags ${n1} SF_SNAPSHOT 26 expect none stat ${n1} flags 27 expect EPERM chflags ${n1} SF_SNAPSHOT 28 expect none stat ${n1} flags 29 expect 0 chown ${n1} 65534 65534 30 expect EPERM -u 65534 -g 65534 chflags ${n1} SF_SNAPSHOT 31 expect none stat ${n1} flags 32 expect EPERM chflags ${n1} SF_SNAPSHOT [all …]
|
H A D | 09.t | 15 n1=`namegen` 27 create_file ${type} ${n1} 28 expect 0 chown ${n1} 65534 65534 30 expect 0 chflags ${n1} ${flag} 31 jexpect 1 `pwd` EPERM chflags ${n1} UF_NODUMP 32 expect ${flag} stat ${n1} flags 33 jexpect 1 `pwd` EPERM -u 65533 -g 65533 chflags ${n1} UF_NODUMP 34 expect ${flag} stat ${n1} flags 35 jexpect 1 `pwd` EPERM -u 65534 -g 65534 chflags ${n1} UF_NODUMP 36 expect ${flag} stat ${n1} flags [all …]
|
H A D | 12.t | 17 n1=`namegen` 23 expect 0 create ${n0}/${n1} 0644 24 expect 0 chflags ${n0}/${n1} UF_IMMUTABLE 25 expect UF_IMMUTABLE stat ${n0}/${n1} flags 26 expect 0 chflags ${n0}/${n1} none 27 expect none stat ${n0}/${n1} flags 29 expect EROFS chflags ${n0}/${n1} UF_IMMUTABLE 30 expect none stat ${n0}/${n1} flags 32 expect 0 chflags ${n0}/${n1} UF_IMMUTABLE 33 expect UF_IMMUTABLE stat ${n0}/${n1} flags [all …]
|
H A D | 00.t | 33 n1=`namegen` 75 expect 0 symlink ${n0} ${n1} 76 expect none stat ${n1} flags 77 expect none lstat ${n1} flags 78 expect 0 chflags ${n1} ${allflags} 79 expect ${allflags} stat ${n1} flags 80 expect none lstat ${n1} flags 81 expect 0 chflags ${n1} ${userflags} 82 expect ${userflags} stat ${n1} flags 83 expect none lstat ${n1} flags [all …]
|
H A D | 08.t | 15 n1=`namegen` 24 create_file ${type} ${n1} 25 expect 0 chown ${n1} 65534 65534 27 expect 0 chflags ${n1} ${flag} 28 expect EPERM -u 65533 -g 65533 chflags ${n1} UF_NODUMP 29 expect ${flag} stat ${n1} flags 30 expect EPERM -u 65534 -g 65534 chflags ${n1} UF_NODUMP 31 expect ${flag} stat ${n1} flags 33 expect 0 chflags ${n1} none 35 expect 0 rmdir ${n1} [all …]
|
H A D | 07.t | 15 n1=`namegen` 24 create_file ${type} ${n1} 25 expect EPERM -u 65534 -g 65534 chflags ${n1} UF_NODUMP 26 expect none stat ${n1} flags 27 expect 0 chown ${n1} 65534 65534 28 expect EPERM -u 65533 -g 65533 chflags ${n1} UF_NODUMP 29 expect none stat ${n1} flags 31 expect 0 rmdir ${n1} 33 expect 0 unlink ${n1} 37 create_file ${type} ${n1} [all …]
|
H A D | 10.t | 15 n1=`namegen` 24 create_file ${type} ${n1} 25 expect 0 chown ${n1} 65534 65534 27 expect EPERM -u 65533 -g 65533 chflags ${n1} ${flag} 28 expect none stat ${n1} flags 29 expect EPERM -u 65534 -g 65534 chflags ${n1} ${flag} 30 expect none stat ${n1} flags 33 expect 0 rmdir ${n1} 35 expect 0 unlink ${n1} 39 create_file ${type} ${n1} [all …]
|
/freebsd/contrib/pjdfstest/tests/rename/ |
H A D | 10.t | 13 n1=`namegen` 25 expect 0 mkdir ${n1} 0755 26 expect 0 chmod ${n1} 01777 30 expect 0 chown ${n1} 65534 65534 35 create_file ${type} ${n1}/${n3} 65534 65534 36 expect 0 -u 65534 -g 65534 rename ${n0}/${n2} ${n1}/${n3} 38 expect ${inode} lstat ${n1}/${n3} inode 39 expect 0 -u 65534 -g 65534 rename ${n1}/${n3} ${n0}/${n2} 41 expect ENOENT lstat ${n1}/${n3} inode 48 expect 0 chown ${n1} 65534 65534 [all …]
|
H A D | 09.t | 13 n1=`namegen` 26 expect 0 mkdir ${n1} 0755 27 expect 0 chown ${n1} 65534 65534 36 create_file ${type} ${n1}/${n3} 65534 65534 37 expect 0 -u 65534 -g 65534 rename ${n0}/${n2} ${n1}/${n3} 39 expect ${inode},65534,65534 lstat ${n1}/${n3} inode,uid,gid 40 expect 0 -u 65534 -g 65534 rename ${n1}/${n3} ${n0}/${n2} 42 expect ENOENT lstat ${n1}/${n3} inode 54 create_file ${type} ${n1}/${n3} 65534 65534 55 expect 0 -u 65534 -g 65534 rename ${n0}/${n2} ${n1}/${n3} [all …]
|
H A D | 00.t | 13 n1=`namegen` 25 expect 0 rename ${n0} ${n1} 27 expect ${type},${inode},0644,1 lstat ${n1} type,inode,mode,nlink 28 expect 0 link ${n1} ${n0} 30 expect ${type},${inode},0644,2 lstat ${n1} type,inode,mode,nlink 31 expect 0 rename ${n1} ${n2} 33 expect ENOENT lstat ${n1} type,mode,nlink 42 expect 0 rename ${n0} ${n1} 44 expect dir,${inode},0755 lstat ${n1} type,inode,mode 45 expect 0 rmdir ${n1} [all …]
|
/freebsd/contrib/pjdfstest/tests/link/ |
H A D | 13.t | 24 n1=`namegen` 29 expect 0 create ${n0}/${n1} 0644 30 expect 1 stat ${n0}/${n1} nlink 31 expect 0 link ${n0}/${n1} ${n0}/${n2} 32 expect 2 stat ${n0}/${n1} nlink 34 expect 1 stat ${n0}/${n1} nlink 37 expect EPERM link ${n0}/${n1} ${n0}/${n2} 38 expect 1 stat ${n0}/${n1} nlink 40 expect 0 link ${n0}/${n1} ${n0}/${n2} 41 expect 2 stat ${n0}/${n1} nlink [all …]
|
H A D | 12.t | 24 n1=`namegen` 29 expect 0 link ${n0} ${n1} 31 expect 0 unlink ${n1} 35 expect EPERM link ${n0} ${n1} 38 expect 0 link ${n0} ${n1} 40 expect 0 unlink ${n1} 44 expect 0 link ${n0} ${n1} 47 expect 0 unlink ${n1} 51 expect EPERM link ${n0} ${n1} 53 expect 0 link ${n0} ${n1} [all …]
|
/freebsd/contrib/pjdfstest/tests/chown/ |
H A D | 07.t | 13 n1=`namegen` 20 expect 0 mkdir ${n1} 0755 21 expect 0 chown ${n1} 65534 65534 24 create_file ${type} ${n1}/${n2} 65534 65534 25 expect EPERM -u 65534 -g 65534 chown ${n1}/${n2} 65533 65533 26 expect EPERM -u 65533 -g 65533 chown ${n1}/${n2} 65534 65534 27 expect EPERM -u 65533 -g 65533 chown ${n1}/${n2} 65533 65533 28 expect EPERM -u 65534 -g 65534 -- chown ${n1}/${n2} -1 65533 29 expect 0 -u 65534 -g 65534 symlink ${n2} ${n1}/${n3} 30 expect EPERM -u 65534 -g 65534 chown ${n1}/${n3} 65533 65533 [all …]
|
H A D | 00.t | 17 n1=`namegen` 34 expect 0 symlink ${n0} ${n1} 35 uidgid=`${fstest} lstat ${n1} uid,gid` 36 expect 0 chown ${n1} 123 456 37 expect 123,456 stat ${n1} uid,gid 39 expect ${uidgid} lstat ${n1} uid,gid 40 expect 0 unlink ${n1} 72 expect 0 symlink ${n0} ${n1} 73 uidgid=`${fstest} lstat ${n1} uid,gid` 74 expect 0 chown ${n1} 65534 65533 [all …]
|
H A D | 05.t | 13 n1=`namegen` 19 expect 0 mkdir ${n1} 0755 20 expect 0 chown ${n1} 65534 65534 21 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644 22 expect 0 -u 65534 -g 65533,65534 -- chown ${n1}/${n2} -1 65533 23 expect 65534,65533 -u 65534 -g 65534 stat ${n1}/${n2} uid,gid 24 expect 0 chmod ${n1} 0644 25 expect EACCES -u 65534 -g 65533,65534 -- chown ${n1}/${n2} -1 65534 26 expect EACCES -u 65534 -g 65533,65534 -- lchown ${n1}/${n2} -1 65534 27 expect 0 chmod ${n1} 0755 [all …]
|
/freebsd/contrib/mtree/ |
H A D | specspec.c | 106 mismatch(NODE *n1, NODE *n2, int differ, char const *path) in mismatch() argument 110 shownode(n1, differ, path); in mismatch() 113 if (n1 == NULL) { in mismatch() 121 shownode(n1, differ, path); in mismatch() 128 compare_nodes(NODE *n1, NODE *n2, char const *path) in compare_nodes() argument 132 if (n1 != NULL && n1->type == F_LINK) in compare_nodes() 133 n1->flags &= ~F_MODE; in compare_nodes() 137 if (n1 == NULL && n2 != NULL) { in compare_nodes() 139 mismatch(n1, n2, differs, path); in compare_nodes() 142 if (n1 != NULL && n2 == NULL) { in compare_nodes() [all …]
|
/freebsd/contrib/pjdfstest/tests/granular/ |
H A D | 00.t | 15 n1=`namegen` 29 expect 0 link ${n0} ${n1} 30 expect 0 unlink ${n1} 45 expect 0 -u 65534 -g 65534 link ${n0} ${n1} 46 expect 0 -u 65534 -g 65534 unlink ${n1} 56 expect 0 create ../${n3}/${n1} 0644 57 expect 0 -u 65534 -g 65534 rename ../${n3}/${n1} ${n0} 60 expect 0 create ../${n3}/${n1} 0644 61 expect 0 -u 65534 -g 65534 rename ../${n3}/${n1} ${n0} 66 expect 0 mkdir ../${n3}/${n1} 0777 [all …]
|
/freebsd/contrib/pjdfstest/tests/symlink/ |
H A D | 09.t | 24 n1=`namegen` 28 expect 0 symlink test ${n0}/${n1} 29 expect 0 unlink ${n0}/${n1} 32 expect EPERM symlink test ${n0}/${n1} 34 expect 0 symlink test ${n0}/${n1} 35 expect 0 unlink ${n0}/${n1} 38 expect 0 symlink test ${n0}/${n1} 40 expect 0 unlink ${n0}/${n1} 43 expect 0 symlink test ${n0}/${n1} 45 expect 0 unlink ${n0}/${n1} [all …]
|
/freebsd/contrib/pjdfstest/tests/mkdir/ |
H A D | 08.t | 24 n1=`namegen` 28 expect 0 mkdir ${n0}/${n1} 0755 29 expect 0 rmdir ${n0}/${n1} 32 expect EPERM mkdir ${n0}/${n1} 0755 34 expect 0 mkdir ${n0}/${n1} 0755 35 expect 0 rmdir ${n0}/${n1} 38 expect 0 mkdir ${n0}/${n1} 0755 39 expect 0 rmdir ${n0}/${n1} 43 expect 0 mkdir ${n0}/${n1} 0755 45 expect 0 rmdir ${n0}/${n1} [all …]
|
/freebsd/contrib/pjdfstest/tests/mkfifo/ |
H A D | 10.t | 24 n1=`namegen` 28 expect 0 mkfifo ${n0}/${n1} 0644 29 expect 0 unlink ${n0}/${n1} 32 expect EPERM mkfifo ${n0}/${n1} 0644 34 expect 0 mkfifo ${n0}/${n1} 0644 35 expect 0 unlink ${n0}/${n1} 38 expect 0 mkfifo ${n0}/${n1} 0644 39 expect 0 unlink ${n0}/${n1} 43 expect 0 mkfifo ${n0}/${n1} 0644 45 expect 0 unlink ${n0}/${n1} [all …]
|