1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$NetBSD: patch-ab,v 1.12 2008/05/18 01:48:09 tnn Exp $
--- src/tar.c.orig 2008-04-14 14:03:13.000000000 +0200
+++ src/tar.c
@@ -285,6 +286,7 @@ enum
NO_RECURSION_OPTION,
NO_SAME_OWNER_OPTION,
NO_SAME_PERMISSIONS_OPTION,
+ NO_UNLINK_FIRST_OPTION,
NO_UNQUOTE_OPTION,
NO_WILDCARDS_MATCH_SLASH_OPTION,
NO_WILDCARDS_OPTION,
@@ -483,6 +485,8 @@ static struct argp_option options[] = {
N_("try extracting files with the same ownership"), GRID+1 },
{"no-same-owner", NO_SAME_OWNER_OPTION, 0, 0,
N_("extract files as yourself"), GRID+1 },
+ {"no-unlink-first", NO_UNLINK_FIRST_OPTION, 0, 0,
+ N_("don't remove each file prior to extracting"), GRID+1 },
{"numeric-owner", NUMERIC_OWNER_OPTION, 0, 0,
N_("always use numbers for user/group names"), GRID+1 },
{"preserve-permissions", 'p', 0, 0,
@@ -1495,6 +1501,10 @@ parse_opt (int key, char *arg, struct ar
old_files_option = UNLINK_FIRST_OLD_FILES;
break;
+ case NO_UNLINK_FIRST_OPTION:
+ old_files_option = 0;
+ break;
+
case UTC_OPTION:
utc_option = true;
break;
|