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