mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 14:20:05 -05:00
Remove unnecessary prefix char in escaping
We can encode it at higher level.
This commit is contained in:
parent
256db0e595
commit
dd87022490
5 changed files with 14 additions and 22 deletions
|
|
@ -902,7 +902,7 @@ static void scan_file(struct snapraid_scan* scan, int is_diff, const char* sub,
|
|||
/* LCOV_EXCL_START */
|
||||
log_fatal("The file '%s%s' has unexpected zero size!\n", disk->dir, sub);
|
||||
log_fatal("It's possible that after a kernel crash this file was lost,\n");
|
||||
log_fatal("and you can use 'snapraid fix -f %s' to recover it.\n", esc_shell('/', sub, esc_buffer));
|
||||
log_fatal("and you can use 'snapraid fix -f /%s' to recover it.\n", esc_shell(sub, esc_buffer));
|
||||
if (!is_diff) {
|
||||
log_fatal("If this an expected condition you can '%s' anyway using 'snapraid --force-zero %s'\n", state->command, state->command);
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue