bsdcpio(1): -L|-R options don't work?

From: Anonymous <swell.k_at_gmail.com>
Date: Fri, 30 Jul 2010 11:20:05 +0400
Can anyone confirm?

  $ mkdir foo
  $ echo >foo/bar
  $ ln -s /usr/include foo/baz
  $ find foo -ls
   57914        3 drwxr-xr-x    2 holo             holo                    4 Jul 30 11:08 foo
   57982        1 lrwxr-xr-x    1 holo             holo                   12 Jul 30 11:08 foo/baz -> /usr/include
   57977        2 -rw-r--r--    1 holo             holo                    1 Jul 30 11:08 foo/bar
  $ find foo | sudo cpio -pdm -L -R root:wheel blah
  $ find blah -ls
   58001        3 drwxr-xr-x    3 root             holo                    3 Jul 30 11:09 blah
   58002        3 drwxr-xr-x    3 holo             holo                    4 Jul 30 11:08 blah/foo
   58004        2 -rw-r--r--    1 holo             holo                    1 Jul 30 11:08 blah/foo/bar
   58003        3 drwxr-xr-x    2 root             wheel                   2 Jul 29 12:49 blah/foo/baz

Some tests fail, too.

  $ make test -C usr.bin/cpio
  Exercising: bsdcpio 2.8.3 -- libarchive 2.7.901a
  ...
  13: test_option_t
  main.c:863: Assertion failed
     Condition: in != NULL
     Description: Couldn't open reference file /usr/src/usr.bin/cpio/test/test_option_tnv.stdout.uu
  ...
  18: test_owner_parse
  test_owner_parse.c:124: Assertion failed: Ints not equal
        1=1
        owner_parse(":nonexistentgroup", &uid, &gid)=4910272
  test_owner_parse.c:125: Assertion failed: Ints not equal
        1=1
        owner_parse(ROOT ":nonexistentgroup", &uid, &gid)=4910272
  test_owner_parse.c:127: Assertion failed: Ints not equal
        1=1
        owner_parse("nonexistentuser:nonexistentgroup", &uid, &gid)=4910272
Received on Fri Jul 30 2010 - 05:23:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC