Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 2008 03:35:45 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/cpio cpio.c
Message-ID:  <200807301819.m6UIJT66003457@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kientzle    2008-07-30 03:35:45 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/cpio         cpio.c 
  Log:
  SVN rev 180987 on 2008-07-30 03:35:45Z by kientzle
  
  MfP4: Preserve permissions by default.
  
  In particular, this fixes the oddity that -dumpl would apply
  umask to copied dirs (which are created in the target tree)
  but not to "copied" files (which are only linked).  After
  this change:
  
  $ ls -ld a a/b a/b/c
  d--x-w-r--  3 tim  tim  512 Jul 29 20:08 a
  drwxr----x  3 tim  tim  512 Jul 29 20:09 a/b
  dr----x-w-  2 tim  tim  512 Jul 29 20:09 a/b/c
  $ (echo a; echo a/b; echo a/b/c) | cpio -dumpl o
  $ cd o
  $ ls -ld a a/b a/b/c
  d--x-w-r--  3 tim  tim  512 Jul 29 20:08 a
  drwxr----x  3 tim  tim  512 Jul 29 20:09 a/b
  dr----x-w-  2 tim  tim  512 Jul 29 20:09 a/b/c
  
  Revision  Changes    Path
  1.10      +1 -0      src/usr.bin/cpio/cpio.c



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