X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=cpmrm.c;h=d6639532b7af888a8890f9e0adcc057cb6ed9f9d;hb=749b004e4bb5830a6246a30ebe0a158e448327c5;hp=e9353412510b93ff505b4971b99b2c8d7d68945b;hpb=224b4e6d27a3af235500d9d8028ddbd3a60af7ed;p=debian%2Fcpmtools diff --git a/cpmrm.c b/cpmrm.c index e935341..d663953 100644 --- a/cpmrm.c +++ b/cpmrm.c @@ -7,7 +7,7 @@ #include #include -#include "getopt.h" +#include "getopt_.h" #include "cpmfs.h" #ifdef USE_DMALLOC @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) /*{{{*/ } if (optind>=(argc-1)) usage=1; - else image=argv[optind]; + else image=argv[optind++]; if (usage) { @@ -66,6 +66,7 @@ int main(int argc, char *argv[]) /*{{{*/ exitcode=1; } } + cpmUmount(&drive); exit(exitcode); } /*}}}*/