Changeset 2912 for trunk/src/kmk/kmkbuiltin/rmdir.c
- Timestamp:
- Sep 14, 2016, 3:36:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/rmdir.c
r2466 r2912 60 60 # include "mscfakes.h" 61 61 #endif 62 #if defined(KMK) && defined(KBUILD_OS_WINDOWS) 63 extern int dir_cache_deleted_directory(const char *pszDir); 64 #endif 62 65 63 66 static int rm_path(char *); … … 135 138 continue; 136 139 /* (only ignored doesn't exist errors fall thru) */ 137 } else if (vflag) { 138 printf("%s\n", *argv); 140 } else { 141 #if defined(KMK) && defined(KBUILD_OS_WINDOWS) 142 dir_cache_deleted_directory(*argv); 143 #endif 144 if (vflag) { 145 printf("%s\n", *argv); 146 } 139 147 } 140 148 if (pflag) … … 178 186 179 187 if (rmdir(path) < 0) { 180 if (ignore_fail_on_non_empty && (errno == ENOTEMPTY || errno == EPERM || errno == EACCES || errno == EINVAL || errno == EEXIST)) 188 if ( ignore_fail_on_non_empty 189 && ( errno == ENOTEMPTY || errno == EPERM || errno == EACCES || errno == EINVAL || errno == EEXIST)) 181 190 break; 182 191 if (!ignore_fail_on_not_exist || errno != ENOENT) { … … 185 194 } 186 195 } 196 #if defined(KMK) && defined(KBUILD_OS_WINDOWS) 197 else { 198 dir_cache_deleted_directory(path); 199 } 200 #endif 187 201 if (vflag) 188 202 printf("%s\n", path);
Note:
See TracChangeset
for help on using the changeset viewer.