aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-11-01 21:22:56 +0000
committerBill Nottingham <notting@redhat.com>2006-11-01 21:22:56 +0000
commit3cf3fcc7390a92ef7d4758a88bf4ce995b3548d9 (patch)
tree27f03f3de193e76c0a30db53bf7468d8a7f6a46a /src
parent7e67599a3275b72bb12342188ec1f0c0da22bc7f (diff)
downloadinitscripts-3cf3fcc7390a92ef7d4758a88bf4ce995b3548d9.tar
initscripts-3cf3fcc7390a92ef7d4758a88bf4ce995b3548d9.tar.gz
initscripts-3cf3fcc7390a92ef7d4758a88bf4ce995b3548d9.tar.bz2
initscripts-3cf3fcc7390a92ef7d4758a88bf4ce995b3548d9.tar.xz
initscripts-3cf3fcc7390a92ef7d4758a88bf4ce995b3548d9.zip
I can't count
Diffstat (limited to 'src')
-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;
}