From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14503 invoked by alias); 15 May 2002 02:59:19 -0000 Mailing-List: contact cygwin-apps-cvs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sources.redhat.com Received: (qmail 14493 invoked by uid 492); 15 May 2002 02:59:19 -0000 Date: Tue, 14 May 2002 19:59:00 -0000 Message-ID: <20020515025919.14491.qmail@sources.redhat.com> From: cgf@sources.redhat.com To: cygwin-apps-cvs@sources.redhat.com Subject: setup ChangeLog filemanip.cc filemanip.h find. ... X-SW-Source: 2002-q2/txt/msg00069.txt.bz2 List-Id: CVSROOT: /cvs/cygwin-apps Module name: setup Changes by: cgf@sources.redhat.com 2002-05-14 19:59:19 Modified files: . : ChangeLog filemanip.cc filemanip.h find.cc fromcwd.cc ini.cc inilex.l iniparse.y Log message: * ini.cc (find_routine): Don't clear buffer it it's NULL. * filemanip.h (trail): Declare. * filemanip.cc (trail): New function. (find_tar_ext): Use trail() instead of strstr(). * fromcwd.cc (check_ini): Ditto. * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it should now be fully qualified. Set ini_filename. Reset error_buf and error_count for any subsequent ini file parsing. (ini_filename): New static variable for parse error reporting. (yyerror): Use full path of setup.ini in error message. Subtract one from line number if at bol. * find.cc (found_part): Eliminate. (find_sub): Call for_each with full path found rather than just file component. (find): Don't calculate found_part. * inilex.l (ini_init): Flush input buffer and reset line number. (yybol): New function. Exports YY_AT_BOL. * iniparse.y: Increase stack depth to allow more tokens to be processed. (yyparse): Remove newline from error condition to allow subsequent per-line error processing to proceed normally. * find.cc (find_sub): Be more defensive in preserving trailing parts of components when doing recursive directory searches or calling user supplied for_each(). * ini.cc (find_routine): Don't assume that any path name with "setup.ini" in it is actually a setup.ini file. Only honor trailing components. Copy path argument to temporary storage when unescaping to prevent nuking of argument. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.238&r2=2.239 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/filemanip.cc.diff?cvsroot=cygwin-apps&r1=2.7&r2=2.8 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/filemanip.h.diff?cvsroot=cygwin-apps&r1=1.8&r2=1.9 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/find.cc.diff?cvsroot=cygwin-apps&r1=2.3&r2=2.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/fromcwd.cc.diff?cvsroot=cygwin-apps&r1=2.24&r2=2.25 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/ini.cc.diff?cvsroot=cygwin-apps&r1=2.28&r2=2.29 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/inilex.l.diff?cvsroot=cygwin-apps&r1=2.16&r2=2.17 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/iniparse.y.diff?cvsroot=cygwin-apps&r1=2.31&r2=2.32