aboutsummaryrefslogtreecommitdiffstats
path: root/src/rename_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rename_device.c')
-rw-r--r--src/rename_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rename_device.c b/src/rename_device.c
index 968bd015..cb960fc5 100644
--- a/src/rename_device.c
+++ b/src/rename_device.c
@@ -157,7 +157,7 @@ int isCfg(const struct dirent *dent) {
return 0;
if (dent->d_name[len-1] == '~')
return 0;
- if (!strncmp(dent->d_name+len-5,".bak",4))
+ if (!strncmp(dent->d_name+len-4,".bak",4))
return 0;
return 1;
}