TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: Git commit to main/sbbs/m
from: Rob Swindell (on Windows
date: 2024-12-10 16:27:00
subject: src/xpdev/dirwrap.c

https://gitlab.synchro.net/main/sbbs/-/commit/5e025ef3f92105834d4c7178
Modified Files:
	src/xpdev/dirwrap.c
Log Message:
Fix bug in recursive use of delfiles(), not deleting all subdirs/files

Looks like this feature (commit d661427e13) never really worked correctly
since it counted the files removed from each sub-dir and then stopped deleting
when the count reached the number of files in the base directory. This was
done to accommodate the 'keep' feature (part of previous commits).
So make 'keep' check conditional on it being non-zero and just don't ever use
a non-zero keep value with a recursive delete and we should be good! :-)

This fixes issue #841
--- SBBSecho 3.23-Linux
                    
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.