mirror of
https://github.com/mirror/wget.git
synced 2025-03-29 13:30:30 +08:00
Don't use extended attributes (--xattr) by default
* src/init.c (defaults): Set enable_xattr to false by default * src/main.c (print_help): Reverse option logic of --xattr * doc/wget.texi: Add description for --xattr Users may not be aware that the origin URL and Referer are saved including credentials, and possibly access tokens within the urls.
This commit is contained in:
parent
7c0a30d724
commit
c125d24762
@ -540,6 +540,14 @@ right NUMBER.
|
|||||||
Set preferred location for Metalink resources. This has effect if multiple
|
Set preferred location for Metalink resources. This has effect if multiple
|
||||||
resources with same priority are available.
|
resources with same priority are available.
|
||||||
|
|
||||||
|
@cindex xattr
|
||||||
|
@item --xattr
|
||||||
|
Enable use of file system's extended attributes to save the
|
||||||
|
original URL and the Referer HTTP header value if used.
|
||||||
|
|
||||||
|
Be aware that the URL might contain private information like
|
||||||
|
access tokens or credentials.
|
||||||
|
|
||||||
|
|
||||||
@cindex force html
|
@cindex force html
|
||||||
@item -F
|
@item -F
|
||||||
|
@ -507,11 +507,7 @@ defaults (void)
|
|||||||
opt.hsts = true;
|
opt.hsts = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_XATTR
|
|
||||||
opt.enable_xattr = true;
|
|
||||||
#else
|
|
||||||
opt.enable_xattr = false;
|
opt.enable_xattr = false;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the user's home directory (strdup-ed), or NULL if none is
|
/* Return the user's home directory (strdup-ed), or NULL if none is
|
||||||
|
@ -755,7 +755,7 @@ Download:\n"),
|
|||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_XATTR
|
#ifdef ENABLE_XATTR
|
||||||
N_("\
|
N_("\
|
||||||
--no-xattr turn off storage of metadata in extended file attributes\n"),
|
--xattr turn on storage of metadata in extended file attributes\n"),
|
||||||
#endif
|
#endif
|
||||||
"\n",
|
"\n",
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user