Avoid creating a file called --version.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18693 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-20 20:19:07 +00:00
parent 40ce8152e6
commit 294dbe06fb
2 changed files with 9 additions and 0 deletions

View File

@@ -114,6 +114,11 @@ int main(int argc, char **argv)
int flag;
const char *fn, *hb;
if (argc < 1 && strcmp(argv[1], "--version")) {
printf("some version");
return 0;
}
if(argc < 2){
fn = "bits.h";
hb = "__BITS_H__";

View File

@@ -49,6 +49,10 @@ main(int argc, char **argv)
fprintf(stderr, "Usage: make_crypto file\n");
exit(1);
}
if (strcmp(argv[1], "--version")) {
printf("some version");
return 0;
}
f = fopen(argv[1], "w");
if(f == NULL) {
perror(argv[1]);