summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-06-13 12:54:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-06-13 12:54:12 +0000
commit7e40119551435f9b330ac3d8baa3471481154dd9 (patch)
tree201ad22864c58a2e3096f58a443cacff25388d2f /usr.sbin
parentdc96153044394c55a72b1f22a5d8bf7011c751af (diff)
document how hardlink writes occur, plus cosmetic clean-ups.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod b/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod
index a83d01121f2..f17ac98fc45 100644
--- a/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod
+++ b/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod
@@ -1,4 +1,4 @@
-$OpenBSD: OpenBSD::Ustar.pod,v 1.3 2005/06/13 12:39:14 espie Exp $
+$OpenBSD: OpenBSD::Ustar.pod,v 1.4 2005/06/13 12:54:11 espie Exp $
=head1 NAME
@@ -9,7 +9,7 @@ OpenBSD::Ustar - simple access to Ustar C<tar(1)> archives
use OpenBSD::Ustar;
# for reading
- open(my $in, "<", $filename);
+ open(my $in, "<", $arcname);
$rdarc = OpenBSD::Ustar->new($in, $destdir);
while (my $o = $rdarc->next()) {
# decide whether we want to extract it, change object attributes
@@ -18,7 +18,7 @@ OpenBSD::Ustar - simple access to Ustar C<tar(1)> archives
close($in);
# for writing
- open(my $out, ">", $filename);
+ open(my $out, ">", $arcname);
$wrarc = OpenBSD::Ustar->new($fh, $destdir);
# loop
my $o = $wrarc->prepare($filename);
@@ -41,7 +41,7 @@ support C<print>.
Note that read and write support are mutually exclusive, though there is
no need to specify the mode used at creation time; it is implicitly
-provided by the underlying file handle.
+provided by the underlying filehandle.
Read access to an archive object C<$rdarc> occurs through a loop that
repeatedly calls C<$o = $rdarc-E<gt>next()> to obtain the next archive entry.
@@ -146,3 +146,7 @@ to C<tar(1)>'s C<-C> option to affect the creation of hard links.
All creation commands happen relative to the C<$destdir> that was used
for creating the C<$arc> C<OpenBSD::Ustar> object.
+
+During writing, hard link status is determined according to already written
+archive entries: a name that references a file which has already been written
+will be granted hard link status.