summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-09-10 17:43:59 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-09-10 17:43:59 +0200
commit1fc05a46d8cbcc4e0187920fb3015aa339e051a3 (patch)
treeb034ea83150d8f0c55ecc33162d2936c9a10aafb /src/adv.c
parent2883f87173707724bea30d523938d95c15692235 (diff)
Create the partition image in the current directory when "/cmd device advanced,copy" is used
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/adv.c b/src/adv.c
index 497710b..33185f2 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -460,7 +460,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
{
char *image_dd;
menu=0;
- image_dd=ask_location("Do you want to save disk file image.dd in %s%s ? [Y/N]","");
+ if(*current_cmd!=NULL)
+ image_dd=get_default_location();
+ else
+ image_dd=ask_location("Do you want to save disk file image.dd in %s%s ? [Y/N]","");
if(image_dd!=NULL)
{
char *new_recup_dir=(char *)MALLOC(strlen(image_dd)+1+strlen(DEFAULT_IMAGE_NAME)+1);