NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/37893: bad matching algorithm in glob.c



>Number:         37893
>Category:       lib
>Synopsis:       bad matching algorithm in glob.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 28 22:40:00 +0000 2008
>Originator:     Jan Kryl
>Release:        current
>Organization:
>Environment:
netbsd 4.99.29 amd64
>Description:
With last commit to lib/libc/gen/glob.c the matching algorithm was broken.
Because the magic characters (*, ?, ...) are not expanded if preceeding segment 
of path is ./ or ../

This has serious consequences when installing a binary package, because
 glob function is used there to copy meta-information files beginning 
with + from current directory to package database. The following pattern
 is used './+*'. No match is found and therefore the package database
 ends up in inconsistent state.
>How-To-Repeat:
compile a simple program, where is used './*' as a pattern to glob().
>Fix:
Revert the last commit to glob.c?




Home | Main Index | Thread Index | Old Index