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

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