View | Details | Raw Unified | Return to bug 277060
Collapse All | Expand All

(-)b/bin/pax/file_subs.c (-1 / +6 lines)
Lines 561-567 chk_path( char *name, uid_t st_uid, gid_t st_gid) Link Here
561
		 * work forward from the first / and check each part of the path
561
		 * work forward from the first / and check each part of the path
562
		 */
562
		 */
563
		spt = strchr(spt, '/');
563
		spt = strchr(spt, '/');
564
		if (spt == NULL)
564
565
		/*
566
		 * skip creating a leaf dir (with an ending '/') as we only want
567
		 * to create parents here
568
		 */
569
		if ((spt == NULL) || (*(spt + 1) == '\0'))
565
			break;
570
			break;
566
		*spt = '\0';
571
		*spt = '\0';
567
572

Return to bug 277060