X-Git-Url: http://git.jankratochvil.net/?p=ntfsprogs.git;a=blobdiff_plain;f=ntfsprogs%2Fntfsundelete.c;fp=ntfsprogs%2Fntfsundelete.c;h=dfcd2ea186802d2a928cb1b8240c112ea757cb43;hp=6df3c606853d928b52c5ab41abf3a5d99249bd12;hb=2d83206a84e25bff80568704ebb0aca2b4323b9c;hpb=4abffda2cd1cad459fc0a61d79e8cd234e207b17 diff --git a/ntfsprogs/ntfsundelete.c b/ntfsprogs/ntfsundelete.c index 6df3c60..dfcd2ea 100644 --- a/ntfsprogs/ntfsundelete.c +++ b/ntfsprogs/ntfsundelete.c @@ -489,6 +489,9 @@ int parse_options (int argc, char *argv[]) } } + if (opts.fillbyte == -1) + opts.fillbyte = 0; + if (ver) version(); if (help || err) @@ -947,9 +950,9 @@ void dump_record (struct ufile *file) if (f->flags & FILE_ATTR_REPARSE_POINT) Qprintf ("Reparse "); if (f->flags & FILE_ATTR_COMPRESSED) Qprintf ("Compressed "); if (f->flags & FILE_ATTR_ENCRYPTED) Qprintf ("Encrypted "); - if (!(f->flags & (FILE_ATTR_SYSTEM || FILE_ATTR_DIRECTORY || - FILE_ATTR_SPARSE_FILE || FILE_ATTR_REPARSE_POINT || - FILE_ATTR_COMPRESSED || FILE_ATTR_ENCRYPTED))) { + if (!(f->flags & (FILE_ATTR_SYSTEM | FILE_ATTR_DIRECTORY | + FILE_ATTR_SPARSE_FILE | FILE_ATTR_REPARSE_POINT | + FILE_ATTR_COMPRESSED | FILE_ATTR_ENCRYPTED))) { Qprintf (NONE); } Qprintf ("\n");