aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_tar.hrl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 15:21:15 +0100
committerHans Bolinder <[email protected]>2018-02-05 15:21:15 +0100
commitb6d0807aebf676063ab522833ded99b2a7fb31c9 (patch)
treef2e9b46c66920f46ba0f331f37f3357687d47ae0 /lib/stdlib/src/erl_tar.hrl
parent18d9afbd5c62bb7b7237fe0d580fc05737a096c1 (diff)
parentbd3dc9ac24d76bbdc8ce973a739fd52b5caa63ff (diff)
downloadotp-b6d0807aebf676063ab522833ded99b2a7fb31c9.tar.gz
otp-b6d0807aebf676063ab522833ded99b2a7fb31c9.tar.bz2
otp-b6d0807aebf676063ab522833ded99b2a7fb31c9.zip
Merge branch 'emj/stdlib/tar-repro/PR-1608/OTP-14834'
* emj/stdlib/tar-repro/PR-1608/OTP-14834: Add options for creating reproducible tars Return error when unable to make dir
Diffstat (limited to 'lib/stdlib/src/erl_tar.hrl')
-rw-r--r--lib/stdlib/src/erl_tar.hrl16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/stdlib/src/erl_tar.hrl b/lib/stdlib/src/erl_tar.hrl
index cff0c2f500..5d6cecbb66 100644
--- a/lib/stdlib/src/erl_tar.hrl
+++ b/lib/stdlib/src/erl_tar.hrl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2017. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2018. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -21,7 +21,12 @@
-record(add_opts, {
read_info, %% Fun to use for read file/link info.
chunk_size = 0, %% For file reading when sending to sftp. 0=do not chunk
- verbose = false}). %% Verbose on/off.
+ verbose = false, %% Verbose on/off.
+ atime = undefined,
+ mtime = undefined,
+ ctime = undefined,
+ uid = 0,
+ gid = 0}).
-type add_opts() :: #add_opts{}.
%% Options used when reading a tar archive.
@@ -36,7 +41,12 @@
-type add_opt() :: dereference |
verbose |
- {chunks, pos_integer()}.
+ {chunks, pos_integer()} |
+ {atime, non_neg_integer()} |
+ {mtime, non_neg_integer()} |
+ {ctime, non_neg_integer()} |
+ {uid, non_neg_integer()} |
+ {gid, non_neg_integer()}.
-type extract_opt() :: {cwd, string()} |
{files, [string()]} |