START bin/chmod 2024-11-07T05:18:49Z ==== chmod_abs_0000 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/chmod 0644 regress/file /bin/chmod 0000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] ==== chmod_abs_0644 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/chmod 0644 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100644' ] ==== chmod_sym_0644 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/chmod u=rw,go=r regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100644' ] ==== chmod_sym_0000 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/chmod 0644 regress/file /bin/chmod a-rwx regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] ==== chmod_R_0755 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir` == '40755' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] ==== chmod_RP_0755 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -RP 0755 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir` == '40755' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] ==== chmod_RH_0755 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -RH 0755 regress/linked_dir [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir` == '40755' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] ==== chmod_RL_0755 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -RL 0755 regress/linked_dir [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100755' ] [ ` /usr/bin/stat -f '%p' regress/dir` == '40755' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100755' ] ==== chmod_h_abs_0000 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h 0000 regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120000' ] ==== chmod_h_abs_0644 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h 0644 regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120644' ] ==== chmod_h_sym_0000 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h a-rwx regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120000' ] ==== chmod_h_sym_0644 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h u=rw,go=r regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120644' ] ==== chmod_h_go_minus_r ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h go-r regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120711' ] ==== chmod_h_go_minus_rx ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h go-rx regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120700' ] ==== chmod_h_go_plus_r ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h go+r regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_h_go_plus_rx ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod -h go+rx regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_abs_0000 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod 0000 regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_abs_0644 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod 0644 regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100644' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_sym_0000 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod a-rwx regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_sym_0644 ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod u=rw,go=r regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100644' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_go_minus_r ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod go-r regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_go_minus_rx ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod go-rx regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_go_plus_r ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod go+r regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100044' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_via_link_go_plus_rx ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link /bin/chmod -h 755 regress/link [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] /bin/chmod go+rx regress/link [ ` /usr/bin/stat -f '%p' regress/file` == '100055' ] [ ` /usr/bin/stat -f '%p' regress/link` == '120755' ] ==== chmod_error ==== /bin/chmod foo bar 2>chmod.err || true /usr/bin/diff -up /usr/src/regress/bin/chmod/chmod.error chmod.err ==== chgrp_error ==== /bin/chgrp __hopefully_not_existing_group bar 2>chgrp.err || true /usr/bin/diff -up /usr/src/regress/bin/chmod/chgrp.error chgrp.err ==== chown_error ==== /sbin/chown __hopefully_not_existing_user bar 2>chown.err || true /usr/bin/diff -up /usr/src/regress/bin/chmod/chown.error chown.err ==== chflags ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /usr/bin/chflags dump regress/file [ ` /usr/bin/stat -f '%f' regress/file` == '0' ] /usr/bin/chflags nodump regress/file [ ` /usr/bin/stat -f '%f' regress/file` == '1' ] ==== chflags_no ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /usr/bin/chflags dump regress/file [ ` /usr/bin/stat -f '%f' regress/file` == '0' ] /usr/bin/chflags nodump regress/file [ ` /usr/bin/stat -f '%f' regress/file` == '1' ] /usr/bin/chflags dump regress/file [ ` /usr/bin/stat -f '%f' regress/file` == '0' ] ==== chflags_R ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /usr/bin/chflags -RL dump regress /usr/bin/chflags -R nodump regress/dir [ ` /usr/bin/stat -f '%f' regress/dir/file1` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir/file2` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir` == '1' ] [ ` /usr/bin/stat -f '%f' regress/link_target_file` == '0' ] ==== chflags_RP ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /usr/bin/chflags -RL dump regress /usr/bin/chflags -RP nodump regress/dir [ ` /usr/bin/stat -f '%f' regress/dir/file1` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir/file2` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir` == '1' ] [ ` /usr/bin/stat -f '%f' regress/link_target_file` == '0' ] ==== chflags_RH ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /usr/bin/chflags -RL dump regress /usr/bin/chflags -RH nodump regress/linked_dir [ ` /usr/bin/stat -f '%f' regress/dir/file1` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir/file2` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir` == '1' ] [ ` /usr/bin/stat -f '%f' regress/link_target_file` == '0' ] ==== chflags_RL ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /usr/bin/chflags -RL dump regress /usr/bin/chflags -RL nodump regress/linked_dir [ ` /usr/bin/stat -f '%f' regress/dir/file1` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir/file2` == '1' ] [ ` /usr/bin/stat -f '%f' regress/dir` == '1' ] [ ` /usr/bin/stat -f '%f' regress/link_target_file` == '1' ] ==== chflags_via_link ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /usr/bin/chflags dump regress/file [ ` /usr/bin/stat -f '%f' regress/file` == '0' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/link chflags -h uchg regress/link chflags nodump regress/link [ ` /usr/bin/stat -f '%f' regress/link` == '2' ] [ ` /usr/bin/stat -f '%f' regress/file` == '1' ] chflags -h nouchg regress/link chflags dump regress/link [ ` /usr/bin/stat -f '%f' regress/link` == '0' ] [ ` /usr/bin/stat -f '%f' regress/file` == '0' ] ==== chflags_error ==== /usr/bin/chflags foo bar 2>chflags.err || true /usr/bin/diff -up /usr/src/regress/bin/chmod/chflags.error chflags.err ==== chgrp_id ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /bin/chgrp 32767 regress/file [ ` /usr/bin/stat -f '%g' regress/file` == 32767 ] ==== chgrp_name ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /bin/chgrp nobody regress/file [ ` /usr/bin/stat -f '%Sg' regress/file` == 'nobody' ] ==== chgrp_symlink ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/symlink /sbin/chown -h root:wheel regress/symlink [ ` /usr/bin/stat -f '%Su' regress/symlink` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/symlink` == 'wheel' ] /bin/chgrp nobody regress/symlink [ ` /usr/bin/stat -f '%Sg' regress/file` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/symlink` == 'wheel' ] ==== chgrp_h_symlink ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/symlink /sbin/chown -h root:wheel regress/symlink [ ` /usr/bin/stat -f '%Su' regress/symlink` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/symlink` == 'wheel' ] /bin/chgrp -h nobody regress/symlink [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] [ ` /usr/bin/stat -f '%Sg' regress/symlink` == 'nobody' ] ==== chgrp_R ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /bin/chgrp -R nobody regress/dir [ ` /usr/bin/stat -f '%Sg' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/link_target_file` == 'wheel' ] ==== chgrp_RP ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /bin/chgrp -RP nobody regress/dir [ ` /usr/bin/stat -f '%Sg' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/link_target_file` == 'wheel' ] ==== chgrp_RH ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /bin/chgrp -RH nobody regress/linked_dir [ ` /usr/bin/stat -f '%Sg' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/link_target_file` == 'wheel' ] ==== chgrp_RL ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /bin/chgrp -RL nobody regress/linked_dir [ ` /usr/bin/stat -f '%Sg' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Sg' regress/link_target_file` == 'nobody' ] ==== chown_id ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /sbin/chown 32767 regress/file [ ` /usr/bin/stat -f '%u' regress/file` == 32767 ] ==== chown_name ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /sbin/chown nobody regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'nobody' ] ==== chown_symlink ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/symlink /sbin/chown -h root:wheel regress/symlink [ ` /usr/bin/stat -f '%Su' regress/symlink` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/symlink` == 'wheel' ] /sbin/chown nobody regress/symlink [ ` /usr/bin/stat -f '%Su' regress/file` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/symlink` == 'root' ] ==== chown_h_symlink ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress /usr/bin/touch regress/file /bin/chmod 000 regress/file [ ` /usr/bin/stat -f '%p' regress/file` == '100000' ] /sbin/chown root:wheel regress/file [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/file` == 'wheel' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/file regress/symlink /sbin/chown -h root:wheel regress/symlink [ ` /usr/bin/stat -f '%Su' regress/symlink` == 'root' ] [ ` /usr/bin/stat -f '%Sg' regress/symlink` == 'wheel' ] /sbin/chown -h nobody regress/symlink [ ` /usr/bin/stat -f '%Su' regress/file` == 'root' ] [ ` /usr/bin/stat -f '%Su' regress/symlink` == 'nobody' ] ==== chown_R ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /sbin/chown -R nobody regress/dir [ ` /usr/bin/stat -f '%Su' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/link_target_file` != 'nobody' ] ==== chown_RP ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /sbin/chown -RP nobody regress/dir [ ` /usr/bin/stat -f '%Su' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/link_target_file` != 'nobody' ] ==== chown_RH ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /sbin/chown -RH nobody regress/linked_dir [ ` /usr/bin/stat -f '%Su' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/link_target_file` != 'nobody' ] ==== chown_RL ==== /bin/rm -f *.err /bin/chmod -R 0700 regress 2>/dev/null || true /bin/rm -rf regress /bin/mkdir -p regress/dir /usr/bin/touch regress/dir/file1 /usr/bin/touch regress/dir/file2 /bin/chmod 000 regress/dir/file1 /bin/chmod 000 regress/dir/file2 /usr/bin/touch regress/link_target_file /bin/chmod 0600 regress/link_target_file [ ` /usr/bin/stat -f '%p' regress/dir/file1` == '100000' ] [ ` /usr/bin/stat -f '%p' regress/dir/file2` == '100000' ] /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/link_target_file regress/dir/linked_file /bin/ln -s /usr/src/regress/bin/chmod/obj/regress/dir regress/linked_dir /bin/chmod 000 regress/dir [ ` /usr/bin/stat -f '%p' regress/dir` == '40000' ] [ ` /usr/bin/stat -f '%p' regress/link_target_file` == '100600' ] /bin/chmod -R 0755 regress /sbin/chown -RL root:wheel regress /sbin/chown -RL nobody regress/linked_dir [ ` /usr/bin/stat -f '%Su' regress/dir/file1` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir/file2` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/dir` == 'nobody' ] [ ` /usr/bin/stat -f '%Su' regress/link_target_file` == 'nobody' ] PASS bin/chmod Duration 0m06.47s