summaryrefslogtreecommitdiff
path: root/crypto/heimdal/lib/vers/make-print-version.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/vers/make-print-version.c')
-rw-r--r--crypto/heimdal/lib/vers/make-print-version.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/heimdal/lib/vers/make-print-version.c b/crypto/heimdal/lib/vers/make-print-version.c
index eab167d05d10..6601b040f070 100644
--- a/crypto/heimdal/lib/vers/make-print-version.c
+++ b/crypto/heimdal/lib/vers/make-print-version.c
@@ -33,10 +33,11 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: make-print-version.c,v 1.3 2003/01/02 15:31:38 joda Exp $");
+RCSID("$Id: make-print-version.c 18765 2006-10-21 17:37:32Z lha $");
#endif
#include <stdio.h>
+#include <string.h>
#ifdef KRB5
extern const char *heimdal_version;
@@ -52,6 +53,10 @@ main(int argc, char **argv)
FILE *f;
if(argc != 2)
return 1;
+ if (strcmp(argv[1], "--version") == 0) {
+ printf("some version");
+ return 0;
+ }
f = fopen(argv[1], "w");
if(f == NULL)
return 1;