diff options
author | Matt Kraai <kraai@debian.org> | 2000-12-05 05:11:41 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-12-05 05:11:41 +0000 |
commit | d27753afd983ffeae45b80dee92f02d0518ca7bf (patch) | |
tree | 1ecefa6dc73279cfe4ae3a45cc647823094248f0 /utility.c | |
parent | 0e836ed8db86ef0274510c27e173f7ac66c6b2a6 (diff) |
Use perrorMsg instead of perror and keep removing files if we encounter
an error.
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -641,7 +641,7 @@ int recursiveAction(const char *fileName, "status=%d followLinks=%d TRUE=%d\n", status, followLinks, TRUE); #endif - perror(fileName); + perrorMsg("%s", fileName); return FALSE; } @@ -666,13 +666,13 @@ int recursiveAction(const char *fileName, dir = opendir(fileName); if (!dir) { - perror(fileName); + perrorMsg("%s", fileName); return FALSE; } if (dirAction != NULL && depthFirst == FALSE) { status = dirAction(fileName, &statbuf, userData); if (status == FALSE) { - perror(fileName); + perrorMsg("%s", fileName); return FALSE; } } @@ -699,13 +699,13 @@ int recursiveAction(const char *fileName, } status = closedir(dir); if (status < 0) { - perror(fileName); + perrorMsg("%s", fileName); return FALSE; } if (dirAction != NULL && depthFirst == TRUE) { status = dirAction(fileName, &statbuf, userData); if (status == FALSE) { - perror(fileName); + perrorMsg("%s", fileName); return FALSE; } } |