Index: script.cc =================================================================== RCS file: /cvs/cygwin-apps/setup/script.cc,v retrieving revision 2.20 diff -u -p -r2.20 script.cc --- script.cc 1 Sep 2005 16:39:27 -0000 2.20 +++ script.cc 27 Sep 2005 16:01:44 -0000 @@ -269,8 +269,8 @@ bool Script::isAScript (String const &file) { /* file may be /etc/postinstall or etc/postinstall */ - if (file.casecompare (ETCPostinstall, sizeof(ETCPostinstall)) && - file.casecompare (ETCPostinstall+1, sizeof(ETCPostinstall)-1)) + if (file.casecompare (ETCPostinstall, sizeof(ETCPostinstall)-1) && + file.casecompare (ETCPostinstall+1, sizeof(ETCPostinstall)-2)) return false; if (file.c_str()[file.size() - 1] == '/') return false;