Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.4
man
man-db-2.5.1-globbing.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File man-db-2.5.1-globbing.dif of Package man
--- src/globbing.c +++ src/globbing.c 2007-09-19 13:35:04.128822519 +0200 @@ -340,13 +340,22 @@ char **look_for_file (const char *unesc_ /* allow lookups like "3x foo" to match "../man3/foo.3x" */ if ((layout & LAYOUT_GNU) && CTYPE (isdigit, *sec) && sec[1] != '\0') { - path = appendstr (path, hier, cat ? "/cat" : "/man", "\t", - NULL); - *strrchr (path, '\t') = *sec; - pattern = end_pattern (appendstr (pattern, name, NULL), sec); + off_t nptr, nsec; - status = match_in_directory (path, pattern, !match_case, - &gbuf); + path = appendstr (path, hier, cat ? "/cat" : "/man", NULL); + nptr = strlen(path); + path = appendstr (path, sec, NULL); + nsec = nptr + strlen(sec); + + while (nsec > nptr) { + *(path + nsec--) = '\0'; + if (pattern) + *pattern = '\0'; + pattern = end_pattern (appendstr (pattern, name, NULL), sec); + status = match_in_directory (path, pattern, !match_case, &gbuf); + if ((status == 0) && (gbuf.gl_pathc != 0)) + break; + } } /* AIX glob.h doesn't define GLOB_NOMATCH and the manpage is vague
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor