Author: weiden
Date: Wed Aug 1 22:55:47 2007
New Revision: 28078
URL:
http://svn.reactos.org/svn/reactos?rev=28078&view=rev
Log:
Don't output "file not found" messages in recursive searches
Modified:
trunk/reactos/base/shell/cmd/dir.c
Modified: trunk/reactos/base/shell/cmd/dir.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/dir.c?rev=2…
==============================================================================
--- trunk/reactos/base/shell/cmd/dir.c (original)
+++ trunk/reactos/base/shell/cmd/dir.c Wed Aug 1 22:55:47 2007
@@ -875,7 +875,8 @@
/* Here we check if we didn't find anything */
if (!(ulFiles + ulDirs))
{
- error_file_not_found();
+ if (!lpFlags->bRecursive || (TotalSummary && lpFlags->bRecursive))
+ error_file_not_found();
return 1;
}