version 1.16, 2005/05/31 08:58:48 |
version 1.17, 2005/06/02 16:05:38 |
|
|
ecp = 0; |
ecp = 0; |
|
|
#ifdef CVS |
#ifdef CVS |
|
struct cvs_cmd *cmdp; |
|
|
|
/* always use the command name in error messages, not aliases */ |
|
cmdp = cvs_findcmd(cvs_command); |
|
|
/* The cvs program appends the command name to the program name */ |
/* The cvs program appends the command name to the program name */ |
if (level == LP_TRACE) { |
if (level == LP_TRACE) { |
strlcpy(prefix, " -> ", sizeof(prefix)); |
strlcpy(prefix, " -> ", sizeof(prefix)); |
|
|
} else if (cvs_command != NULL) { |
} else if (cvs_command != NULL) { |
if (level == LP_ABORT) |
if (level == LP_ABORT) |
snprintf(prefix, sizeof(prefix), "%s [%s aborted]", |
snprintf(prefix, sizeof(prefix), "%s [%s aborted]", |
__progname, cvs_command); |
__progname, cmdp->cmd_name); |
else |
else |
snprintf(prefix, sizeof(prefix), "%s %s", __progname, |
snprintf(prefix, sizeof(prefix), "%s %s", __progname, |
cvs_command); |
cmdp->cmd_name); |
} else /* just use the standard strlcpy */ |
} else /* just use the standard strlcpy */ |
#endif |
#endif |
strlcpy(prefix, __progname, sizeof(prefix)); |
strlcpy(prefix, __progname, sizeof(prefix)); |