Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/ntfstools
In directory usw-pr-cvs1:/tmp/cvs-serv20580
Modified Files:
ntfsfix.c
Log Message:
I think version reporting is now fixed.
Index: ntfsfix.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/ntfstools/ntfsfix.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -U2 -r1.9 -r1.10
--- ntfsfix.c 2001/04/02 02:20:53 1.9
+++ ntfsfix.c 2001/04/02 02:38:39 1.10
@@ -64,8 +64,7 @@
{
const char *EXEC_NAME = "NtfsFix";
- char *EXEC2_VERSION = "$Revision$";
- char *EXEC_VERSION + 11;
const char *OK = "OK";
const char *FAILED = "FAILED";
+ char *EXEC_REVISION, *EXEC_VERSION;
unsigned char *b1 = NULL;
unsigned char *b2 = NULL;
@@ -80,4 +79,6 @@
MFT_REFERENCE mref;
+ EXEC_REVISION = strdup("$Revision$");
+ EXEC_VERSION = EXEC_REVISION + 11;
EXEC_VERSION[strlen(EXEC_VERSION) - 2] = '\0';
printf("\n");
@@ -106,4 +107,5 @@
EXEC_NAME, EXEC_NAME);
fprintf(stderr, "Error: incorrect syntax\n");
+ free(EXEC_REVISION);
exit(1);
}
@@ -111,4 +113,5 @@
if (!vol) {
perror("ntfs_mount() failed");
+ free(EXEC_REVISION);
exit(1);
}
@@ -428,4 +431,5 @@
if (vol)
ntfs_umount(vol, 0);
+ free(EXEC_REVISION);
return i;
error_exit:
|