Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2010 11:20:05 +0400
From:      Anonymous <swell.k@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        kientzle@FreeBSD.org
Subject:   bsdcpio(1): -L|-R options don't work?
Message-ID:  <86fwz1bfmi.fsf@gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86fwz1bfmi.fsf>