Lines Matching refs:name

17  * 4. Neither the name of the University nor the names of its contributors
132 * a block of all 0 (we must have a valid file name).
318 if (hd->name[0] == '\0')
340 if (strcmp(opt->name, TAR_OPTION) ||
343 opt->name, opt->value);
354 opt->name, opt->value);
382 arcn->org_name = arcn->name;
387 * copy out the name and values in the stat buffer
391 * old tar format specifies the name always be null-terminated,
395 arcn->nlen = l_strncpy(arcn->name, hd->name,
396 MIN(sizeof(hd->name), sizeof(arcn->name)) - 1);
397 arcn->name[arcn->nlen] = '\0';
415 pt = &(arcn->name[arcn->nlen - 1]);
421 * symbolic link, need to get the link name and set the type in
432 * hard link, need to get the link name, set the type in the
543 paxwarn(1,"Link name too long for tar %s", arcn->ln_name);
554 * check file name len, remember extra char for dirs (the / at the end)
559 if (len >= (int)sizeof(hd->name)) {
560 paxwarn(1, "File name too long for tar %s", arcn->name);
573 l_strncpy(hd->name, arcn->name, sizeof(hd->name) - 1);
574 hd->name[sizeof(hd->name) - 1] = '\0';
585 hd->name[len-1] = '/';
715 if (hd->name[0] == '\0')
746 arcn->org_name = arcn->name;
754 * we copy the prefix first and add a / between the prefix and name.
756 dest = arcn->name;
759 MIN(sizeof(hd->prefix), sizeof(arcn->name) - 2));
765 * ustar format specifies the name may be unterminated
769 arcn->nlen = cnt + l_strncpy(dest, hd->name,
770 MIN(sizeof(hd->name), sizeof(arcn->name) - cnt - 1));
771 arcn->name[arcn->nlen] = '\0';
828 if (arcn->name[arcn->nlen - 1] == '/')
829 arcn->name[--arcn->nlen] = '\0';
861 * copy the link name
917 paxwarn(1, "Link name too long for ustar %s", arcn->ln_name);
922 * split the path name into prefix and name fields (if needed). if
923 * pt != arcn->name, the name has to be split
925 if ((pt = name_split(arcn->name, arcn->nlen)) == NULL) {
926 paxwarn(1, "File name too long for ustar %s", arcn->name);
933 * split the name, or zero out the prefix
935 if (pt != arcn->name) {
937 * name was split, pt points at the / where the split is to
941 l_strncpy(hd->prefix, arcn->name, sizeof(hd->prefix));
947 * copy the name part. this may be the whole path or the part after
948 * the prefix. both the name and prefix may fill the entire field.
950 l_strncpy(hd->name, pt, sizeof(hd->name));
993 /* the link name may occupy the entire field in ustar */
1068 * see if the name has to be split for storage in a ustar header. We try
1069 * to fit the entire name in the name field without splitting if we can.
1074 * name (it would violate the spec to split there). A NULL is returned if
1075 * the file name is too long
1079 name_split(char *name, int len)
1084 * check to see if the file name is small enough to fit in the name
1085 * field. if so just return a pointer to the name.
1088 return(name);
1093 * we start looking at the biggest sized piece that fits in the name
1095 * to find the biggest piece to fit in the name field (or the smallest
1098 start = name + len - TNMSZ;
1103 * if we hit the end of the string, this name cannot be split, so we
1108 len = start - name;