aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2008-08-17 19:43:45 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2008-08-17 19:43:45 +0000
commitac2dcb729fc5b54bc829c23d239dec65a057bf49 (patch)
tree6db2cea47d02e96c780ea4c1a99040439b464a2a /usr.bin
parent7e178674fffdf8c31686922ad24a13f6b3c0f9ac (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tar/matching.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/tar/matching.c b/usr.bin/tar/matching.c
index 782f76104167..406564a12541 100644
--- a/usr.bin/tar/matching.c
+++ b/usr.bin/tar/matching.c
@@ -118,8 +118,6 @@ add_pattern(struct bsdtar *bsdtar, struct match **list, const char *pattern)
match = malloc(sizeof(*match) + strlen(pattern) + 1);
if (match == NULL)
bsdtar_errc(bsdtar, 1, errno, "Out of memory");
- if (pattern[0] == '/')
- pattern++;
strcpy(match->pattern, pattern);
/* Both "foo/" and "foo" should match "foo/bar". */
if (match->pattern[strlen(match->pattern)-1] == '/')