Blame SOURCES/wget-1.19.5-Dont-use-extended-attributes---xattr-by-default.patch

11f80c
From 0e991351c8bd3996bfc396402a67445abcf1319e Mon Sep 17 00:00:00 2001
11f80c
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
11f80c
Date: Wed, 26 Dec 2018 13:51:48 +0100
11f80c
Subject: [PATCH] Don't use extended attributes (--xattr) by default
11f80c
11f80c
---
11f80c
 doc/wget.texi | 8 ++++++++
11f80c
 src/init.c    | 4 ----
11f80c
 src/main.c    | 2 +-
11f80c
 3 files changed, 9 insertions(+), 5 deletions(-)
11f80c
11f80c
diff --git a/doc/wget.texi b/doc/wget.texi
11f80c
index 66edab8..d672bbf 100644
11f80c
--- a/doc/wget.texi
11f80c
+++ b/doc/wget.texi
11f80c
@@ -540,6 +540,14 @@ right NUMBER.
11f80c
 Set preferred location for Metalink resources. This has effect if multiple
11f80c
 resources with same priority are available.
11f80c
 
11f80c
+@cindex xattr
11f80c
+@item --xattr
11f80c
+Enable use of file system's extended attributes to save the
11f80c
+original URL and the Referer HTTP header value if used.
11f80c
+
11f80c
+Be aware that the URL might contain private information like
11f80c
+access tokens or credentials.
11f80c
+
11f80c
 
11f80c
 @cindex force html
11f80c
 @item -F
11f80c
diff --git a/src/init.c b/src/init.c
11f80c
index eb81ab4..800970c 100644
11f80c
--- a/src/init.c
11f80c
+++ b/src/init.c
11f80c
@@ -509,11 +509,7 @@ defaults (void)
11f80c
   opt.hsts = true;
11f80c
 #endif
11f80c
 
11f80c
-#ifdef ENABLE_XATTR
11f80c
-  opt.enable_xattr = true;
11f80c
-#else
11f80c
   opt.enable_xattr = false;
11f80c
-#endif
11f80c
 }
11f80c
 
11f80c
 /* Return the user's home directory (strdup-ed), or NULL if none is
11f80c
diff --git a/src/main.c b/src/main.c
11f80c
index 81db931..6ac1621 100644
11f80c
--- a/src/main.c
11f80c
+++ b/src/main.c
11f80c
@@ -754,7 +754,7 @@ Download:\n"),
11f80c
 #endif
11f80c
 #ifdef ENABLE_XATTR
11f80c
     N_("\
11f80c
-       --no-xattr                  turn off storage of metadata in extended file attributes\n"),
11f80c
+       --xattr                     turn on storage of metadata in extended file attributes\n"),
11f80c
 #endif
11f80c
     "\n",
11f80c
 
11f80c
-- 
11f80c
2.17.2
11f80c