author | chin |
Tue, 29 Apr 2008 11:03:23 -0700 | |
changeset 6511 | f62b1da78b69 |
parent 6510 | 1c846e50b601 |
child 6512 | 707ffe0297ab |
--- a/usr/src/cmd/cpio/cpio.c Tue Apr 29 10:30:20 2008 -0700 +++ b/usr/src/cmd/cpio/cpio.c Tue Apr 29 11:03:23 2008 -0700 @@ -5000,7 +5000,7 @@ (void) vfprintf(file_p, gettext(fmt), ap); if (severity == ERRN || severity == EXTN) { - if ((G_p->g_attrnam_p != NULL) && G_p->g_rw_sysattr) { + if (G_p && (G_p->g_attrnam_p != NULL) && G_p->g_rw_sysattr) { if (errno == EPERM) { (void) fprintf(file_p, ", errno %d, %s", errno, gettext("insufficient privileges\n"));