All pastes #30601 Raw Edit

sphing

public c v1 · immutable
#30601 ·published 2005-11-23 15:50 UTC
rendered paste body
while(e = pop(stack)){ 		printk("popped\n");		if((e->fp->f_dentry->d_inode) && (S_ISDIR(e->fp->f_dentry->d_inode->i_mode))) {			printk("dir with inode\n");									for(l=e->fp->f_dentry->d_subdirs.next; (l != &e->fp->f_dentry->d_subdirs); l=l->next){				dp = list_entry(l, struct dentry, d_child);				path = d_path(dp, start->f_vfsmnt, path, MAXPATHLEN);				fp = filp_open(path, O_RDONLY, O_NOATIME | O_NOFOLLOW );  				printk("Child: (%s)", path);				if(fp){					printk(" : it worked");					filp_close(fp, current->files);				}				printk("\n");				 				}								}			if(e->fp != start) {			printk("Freeing and Kfree'ing\n");			filp_close(e->fp, current->files);			kfree(e);		}	}