diff --git a/ntfsprogs/ntfsfix.c b/ntfsprogs/ntfsfix.c index d5cbf720..fb283e5e 100644 --- a/ntfsprogs/ntfsfix.c +++ b/ntfsprogs/ntfsfix.c @@ -1118,9 +1118,10 @@ static int fix_selfloc_conditions(struct MFT_SELF_LOCATED *selfloc) * * Only low-level library functions can be used. * - * Returns 0 if the conditions for the error were not met or - * the error could be fixed, - * -1 if some error was encountered + * Returns 0 if the conditions for the error was met and + * this error could be fixed, + * -1 if the condition was not met or some error + * which could not be fixed was encountered. */ static int fix_self_located_mft(ntfs_volume *vol) @@ -1147,7 +1148,7 @@ static int fix_self_located_mft(ntfs_volume *vol) ntfs_log_info(res ? FAILED : OK); } else { ntfs_log_info(OK); - res = 0; + res = -1; } free(selfloc.mft0); free(selfloc.mft1); @@ -1378,6 +1379,8 @@ error_exit : * * This is a replay of the normal start up sequence with fixes when * some problem arise. + * + * Returns 0 if there was an error and a fix is available */ static int fix_startup(struct ntfs_device *dev, unsigned long flags)