diff options
Diffstat (limited to 'bin/pax/ftree.c')
-rw-r--r-- | bin/pax/ftree.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/bin/pax/ftree.c b/bin/pax/ftree.c index f6e7f6f..00dce37 100644 --- a/bin/pax/ftree.c +++ b/bin/pax/ftree.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: ftree.c,v 1.7 1997/02/22 14:04:27 peter Exp $ */ #ifndef lint @@ -122,7 +122,7 @@ ftree_start() ftsopts |= FTS_PHYSICAL; if (Hflag) # ifdef NET2_FTS - warn(0, "The -H flag is not supported on this version"); + pax_warn(0, "The -H flag is not supported on this version"); # else ftsopts |= FTS_COMFOLLOW; # endif @@ -130,7 +130,7 @@ ftree_start() ftsopts |= FTS_XDEV; if ((fthead == NULL) && ((farray[0] = malloc(PAXPATHLEN+2)) == NULL)) { - warn(1, "Unable to allocate memory for file name buffer"); + pax_warn(1, "Unable to allocate memory for file name buffer"); return(-1); } @@ -165,7 +165,7 @@ ftree_add(str) * simple check for bad args */ if ((str == NULL) || (*str == '\0')) { - warn(0, "Invalid file name arguement"); + pax_warn(0, "Invalid file name arguement"); return(-1); } @@ -175,7 +175,7 @@ ftree_add(str) * trailing / the user may pass us. (watch out for / by itself). */ if ((ft = (FTREE *)malloc(sizeof(FTREE))) == NULL) { - warn(0, "Unable to allocate memory for filename"); + pax_warn(0, "Unable to allocate memory for filename"); return(-1); } @@ -263,7 +263,7 @@ ftree_chk() if (ft->refcnt > 0) continue; if (wban == 0) { - warn(1,"WARNING! These file names were not selected:"); + pax_warn(1,"WARNING! These file names were not selected:"); ++wban; } (void)fprintf(stderr, "%s\n", ft->fname); @@ -423,30 +423,30 @@ next_file(arcn) /* * fts claims a file system cycle */ - warn(1,"File system cycle found at %s",ftent->fts_path); + pax_warn(1,"File system cycle found at %s",ftent->fts_path); continue; case FTS_DNR: # ifdef NET2_FTS - syswarn(1, errno, + sys_warn(1, errno, # else - syswarn(1, ftent->fts_errno, + sys_warn(1, ftent->fts_errno, # endif "Unable to read directory %s", ftent->fts_path); continue; case FTS_ERR: # ifdef NET2_FTS - syswarn(1, errno, + sys_warn(1, errno, # else - syswarn(1, ftent->fts_errno, + sys_warn(1, ftent->fts_errno, # endif "File system traversal error"); continue; case FTS_NS: case FTS_NSOK: # ifdef NET2_FTS - syswarn(1, errno, + sys_warn(1, errno, # else - syswarn(1, ftent->fts_errno, + sys_warn(1, ftent->fts_errno, # endif "Unable to access %s", ftent->fts_path); continue; @@ -508,7 +508,7 @@ next_file(arcn) */ if ((cnt = readlink(ftent->fts_path, arcn->ln_name, PAXPATHLEN)) < 0) { - syswarn(1, errno, "Unable to read symlink %s", + sys_warn(1, errno, "Unable to read symlink %s", ftent->fts_path); continue; } |