summaryrefslogtreecommitdiffstats
path: root/src/phmain.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-08-18 09:08:52 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-08-18 09:08:52 +0200
commitdb5adf256ef5341ea5fcd8c11584c2f468efa8a4 (patch)
treea045445ea528475daed20329ec3d1563654123fb /src/phmain.c
parent163cbb0d34bf0e8577e27374e4cddc4e6b920b05 (diff)
PhotoRec: print an error if /cmd parameter hasn't been fully processed (work still needed)
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/phmain.c b/src/phmain.c
index ce1c277..3382980 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -367,6 +367,10 @@ int main( int argc, char **argv )
{
printf("PhotoRec: Log file corrupted!\n");
}
+ else if(cmd_run!=NULL && cmd_run[0]!='\0')
+ {
+ printf("PhotoRec syntax error: %s\n", cmd_run);
+ }
else
{
printf("PhotoRec exited normally.\n");