From f53aaea85ead84e8d54a8adff1e8052c53247e88 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 1 Nov 2006 21:23:12 +0000 Subject: I can't count --- src/rename_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rename_device.c b/src/rename_device.c index 9acdebb7..ffc184aa 100644 --- a/src/rename_device.c +++ b/src/rename_device.c @@ -107,7 +107,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; } -- cgit v1.2.1