backout previous; it was a missing prototype elsewhere.
noted by mrg.
This commit is contained in:
parent
6d4a3c4191
commit
a47ed375c9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gen_subs.c,v 1.28 2003/06/24 06:41:51 grant Exp $ */
|
||||
/* $NetBSD: gen_subs.c,v 1.29 2003/06/24 08:27:31 grant Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992 Keith Muller.
|
||||
@ -42,7 +42,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: gen_subs.c,v 1.28 2003/06/24 06:41:51 grant Exp $");
|
||||
__RCSID("$NetBSD: gen_subs.c,v 1.29 2003/06/24 08:27:31 grant Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -123,8 +123,8 @@ ls_list(ARCHD *arcn, time_t now, FILE *fp)
|
||||
*/
|
||||
if (strftime(f_date,DATELEN,timefrmt,localtime(&(sbp->st_mtime))) == 0)
|
||||
f_date[0] = '\0';
|
||||
user = (char *)user_from_uid(sbp->st_uid, 0);
|
||||
group = (char *)group_from_gid(sbp->st_gid, 0);
|
||||
user = user_from_uid(sbp->st_uid, 0);
|
||||
group = group_from_gid(sbp->st_gid, 0);
|
||||
(void)fprintf(fp, "%s%2lu %-*s %-*s ", f_mode,
|
||||
(unsigned long)sbp->st_nlink,
|
||||
UT_NAMESIZE, user ? user : "", UT_GRPSIZE, group ? group : "");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tar.c,v 1.41 2003/06/24 06:41:51 grant Exp $ */
|
||||
/* $NetBSD: tar.c,v 1.42 2003/06/24 08:27:30 grant Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992 Keith Muller.
|
||||
@ -42,7 +42,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tar.c 8.2 (Berkeley) 4/18/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: tar.c,v 1.41 2003/06/24 06:41:51 grant Exp $");
|
||||
__RCSID("$NetBSD: tar.c,v 1.42 2003/06/24 08:27:30 grant Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -1153,8 +1153,8 @@ ustar_wr(ARCHD *arcn)
|
||||
ul_oct((u_long)arcn->sb.st_gid, hd->gid, sizeof(hd->gid), 3) ||
|
||||
ul_oct((u_long)arcn->sb.st_mtime,hd->mtime,sizeof(hd->mtime),3))
|
||||
goto out;
|
||||
user = (char *)user_from_uid(arcn->sb.st_uid, 1);
|
||||
group = (char *)group_from_gid(arcn->sb.st_gid, 1);
|
||||
user = user_from_uid(arcn->sb.st_uid, 1);
|
||||
group = group_from_gid(arcn->sb.st_gid, 1);
|
||||
strncpy(hd->uname, user ? user : "", sizeof(hd->uname));
|
||||
strncpy(hd->gname, group ? group : "", sizeof(hd->gname));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user