mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
The directory name should only be prepended if one was specified.
This commit is contained in:
parent
c1cda4a609
commit
c8eae6684b
@ -272,6 +272,7 @@ int wget_main(int argc, char **argv)
|
|||||||
output = stdout;
|
output = stdout;
|
||||||
quiet_flag = TRUE;
|
quiet_flag = TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
if (dir_prefix != NULL)
|
||||||
fname_out = concat_path_file(dir_prefix, fname_out);
|
fname_out = concat_path_file(dir_prefix, fname_out);
|
||||||
output = xfopen(fname_out, (do_continue ? "a" : "w"));
|
output = xfopen(fname_out, (do_continue ? "a" : "w"));
|
||||||
}
|
}
|
||||||
@ -816,7 +817,7 @@ progressmeter(int flag)
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: wget.c,v 1.42 2001/06/21 19:45:06 andersen Exp $
|
* $Id: wget.c,v 1.43 2001/07/19 17:29:38 kraai Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
3
wget.c
3
wget.c
@ -272,6 +272,7 @@ int wget_main(int argc, char **argv)
|
|||||||
output = stdout;
|
output = stdout;
|
||||||
quiet_flag = TRUE;
|
quiet_flag = TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
if (dir_prefix != NULL)
|
||||||
fname_out = concat_path_file(dir_prefix, fname_out);
|
fname_out = concat_path_file(dir_prefix, fname_out);
|
||||||
output = xfopen(fname_out, (do_continue ? "a" : "w"));
|
output = xfopen(fname_out, (do_continue ? "a" : "w"));
|
||||||
}
|
}
|
||||||
@ -816,7 +817,7 @@ progressmeter(int flag)
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: wget.c,v 1.42 2001/06/21 19:45:06 andersen Exp $
|
* $Id: wget.c,v 1.43 2001/07/19 17:29:38 kraai Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user