Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
h->path = sp;
}
+ // We used to set h->user to NULL here, but this interferes
+ // with handling of code 302 ("object was moved")
+
sp = strrchr(h->host, '@');
- h->user = NULL;
if (sp != NULL) {
h->user = h->host;
*sp = '\0';
/* TODO: compat issue: should handle "wget URL1 URL2..." */
+ target.user = NULL;
parse_url(argv[optind], &target);
/* Use the proxy if necessary */
#include <mntent.h>
#include <syslog.h>
#include <sys/mount.h>
+#ifndef MS_UNION
+# define MS_UNION (1 << 8)
+#endif
#ifndef MS_BIND
# define MS_BIND (1 << 12)
#endif
/* "loud" */ ~MS_SILENT,
// action flags
+ /* "union" */ MS_UNION,
/* "bind" */ MS_BIND,
/* "move" */ MS_MOVE,
/* "shared" */ MS_SHARED,
"loud\0"
// action flags
+ "union\0"
"bind\0"
"move\0"
"shared\0"