aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-11-01 21:23:12 +0000
committerBill Nottingham <notting@redhat.com>2006-11-01 21:23:12 +0000
commitf53aaea85ead84e8d54a8adff1e8052c53247e88 (patch)
tree81419b22f18146bbe5763c313cdd64414d571d77
parente694926620b78cd6da8a7805d4e210c16268f8d7 (diff)
downloadinitscripts-f53aaea85ead84e8d54a8adff1e8052c53247e88.tar
initscripts-f53aaea85ead84e8d54a8adff1e8052c53247e88.tar.gz
initscripts-f53aaea85ead84e8d54a8adff1e8052c53247e88.tar.bz2
initscripts-f53aaea85ead84e8d54a8adff1e8052c53247e88.tar.xz
initscripts-f53aaea85ead84e8d54a8adff1e8052c53247e88.zip
I can't count
-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 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;
}