diff -r 671df13f1304 -r 52ac1fcbdbbe pre-inst/pre-inst.c --- a/pre-inst/pre-inst.c Wed Aug 22 23:29:22 2018 +0100 +++ b/pre-inst/pre-inst.c Fri Mar 08 13:50:52 2019 +0000 @@ -358,7 +358,7 @@ int exit_status; #endif GError *tmp_error=NULL; - if (argc<1) + if (argc<2) { g_set_error_literal(error,G_FILE_ERROR,G_FILE_ERROR_NOENT, "--post: No command given"); @@ -519,7 +519,7 @@ success=!!pre_install(path); #endif } - if (enable_post && !run_post(argc-1,argv+1,success,&error)) + if (enable_post && !run_post(argc,argv,success,&error)) { #ifndef WIN32 fprintf(stderr,"Error in post: %s\n",error->message);