diff options
Diffstat (limited to 'bin/pax/sel_subs.c')
-rw-r--r-- | bin/pax/sel_subs.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/bin/pax/sel_subs.c b/bin/pax/sel_subs.c index d3f1a92..b740aed 100644 --- a/bin/pax/sel_subs.c +++ b/bin/pax/sel_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: sel_subs.c,v 1.6 1997/02/22 14:04:41 peter Exp $ */ #ifndef lint @@ -129,7 +129,7 @@ usr_add(str) return(-1); if ((usrtb == NULL) && ((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) { - warn(1, "Unable to allocate memory for user selection table"); + pax_warn(1, "Unable to allocate memory for user selection table"); return(-1); } @@ -143,7 +143,7 @@ usr_add(str) if ((str[0] == '\\') && (str[1] == '#')) ++str; if ((pw = getpwnam(str)) == NULL) { - warn(1, "Unable to find uid for user: %s", str); + pax_warn(1, "Unable to find uid for user: %s", str); return(-1); } uid = (uid_t)pw->pw_uid; @@ -176,7 +176,7 @@ usr_add(str) usrtb[indx] = pt; return(0); } - warn(1, "User selection table out of memory"); + pax_warn(1, "User selection table out of memory"); return(-1); } @@ -242,7 +242,7 @@ grp_add(str) return(-1); if ((grptb == NULL) && ((grptb = (GRPT **)calloc(GRP_TB_SZ, sizeof(GRPT *))) == NULL)) { - warn(1, "Unable to allocate memory fo group selection table"); + pax_warn(1, "Unable to allocate memory fo group selection table"); return(-1); } @@ -256,7 +256,7 @@ grp_add(str) if ((str[0] == '\\') && (str[1] == '#')) ++str; if ((gr = getgrnam(str)) == NULL) { - warn(1,"Cannot determine gid for group name: %s", str); + pax_warn(1,"Cannot determine gid for group name: %s", str); return(-1); } gid = (gid_t)gr->gr_gid; @@ -289,7 +289,7 @@ grp_add(str) grptb[indx] = pt; return(0); } - warn(1, "Group selection table out of memory"); + pax_warn(1, "Group selection table out of memory"); return(-1); } @@ -375,7 +375,7 @@ trng_add(str) * throw out the badly formed time ranges */ if ((str == NULL) || (*str == '\0')) { - warn(1, "Empty time range string"); + pax_warn(1, "Empty time range string"); return(-1); } @@ -402,7 +402,7 @@ trng_add(str) ++dot; continue; } - warn(1, "Improperly specified time range: %s", str); + pax_warn(1, "Improperly specified time range: %s", str); goto out; } @@ -410,7 +410,7 @@ trng_add(str) * allocate space for the time range and store the limits */ if ((pt = (TIME_RNG *)malloc(sizeof(TIME_RNG))) == NULL) { - warn(1, "Unable to allocate memory for time range"); + pax_warn(1, "Unable to allocate memory for time range"); return(-1); } @@ -433,7 +433,7 @@ trng_add(str) pt->flgs |= CMPCTME; break; default: - warn(1, "Bad option %c with time range %s", + pax_warn(1, "Bad option %c with time range %s", *flgpt, str); goto out; } @@ -450,7 +450,7 @@ trng_add(str) * add lower limit */ if (str_sec(str, &(pt->low_time)) < 0) { - warn(1, "Illegal lower time range %s", str); + pax_warn(1, "Illegal lower time range %s", str); (void)free((char *)pt); goto out; } @@ -462,7 +462,7 @@ trng_add(str) * add upper limit */ if (str_sec(up_pt, &(pt->high_time)) < 0) { - warn(1, "Illegal upper time range %s", up_pt); + pax_warn(1, "Illegal upper time range %s", up_pt); (void)free((char *)pt); goto out; } @@ -473,7 +473,7 @@ trng_add(str) */ if (pt->flgs & HASLOW) { if (pt->low_time > pt->high_time) { - warn(1, "Upper %s and lower %s time overlap", + pax_warn(1, "Upper %s and lower %s time overlap", up_pt, str); (void)free((char *)pt); return(-1); @@ -491,7 +491,7 @@ trng_add(str) return(0); out: - warn(1, "Time range format is: [yy[mm[dd[hh]]]]mm[.ss][/[c][m]]"); + pax_warn(1, "Time range format is: [yy[mm[dd[hh]]]]mm[.ss][/[c][m]]"); return(-1); } |