"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/glob.c" between
bed-3.0.0.src.tar.xz and bed-3.0.1.src.tar.xz

About: bed is an adjustable data format binary editor.

glob.c  (bed-3.0.0.src.tar.xz):glob.c  (bed-3.0.1.src.tar.xz)
skipping to change at line 309 skipping to change at line 309
dirnr=0; dirnr=0;
} }
if(!(dir=opendir("."))) { if(!(dir=opendir("."))) {
*dirend=0; *dirend=0;
return 0; return 0;
} }
while(( ent=readdir(dir))) { while(( ent=readdir(dir))) {
const char *name= ent->d_name; const char *name= ent->d_name;
if(name[1]||name[0]!='.') { if(name[1]||name[0]!='.') {
if(!fnmatch(pattern, name, FNM_PERIOD|FNM_NOESCAPE) ) { // if(!fnmatch(pattern, name, FNM_PERIOD|FNM_NOESCAPE) ) {
if(!fnmatch(pattern, name, FNM_NOESCAPE) ) {
int len= strlen(name)+1; int len= strlen(name)+1;
switch(ent->d_type) { switch(ent->d_type) {
case DT_LNK: case DT_LNK:
if( !isdir(name) ) if( !isdir(name) )
goto NODIR; goto NODIR;
case DT_DIR: { case DT_DIR: {
if(dirnr>=alldirslen) { if(dirnr>=alldirslen) {
alldirslen=alldirslen*2+STARTDIRS ; alldirslen=alldirslen*2+STARTDIRS ;
alldirs=(char **)realloc(alldirs, sizeof(char*)*alldirslen); alldirs=(char **)realloc(alldirs, sizeof(char*)*alldirslen);
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)