mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-25 05:29:47 +00:00
Formerly arscan.c.~31~
This commit is contained in:
parent
534926ac7a
commit
7162378126
1 changed files with 4 additions and 4 deletions
8
arscan.c
8
arscan.c
|
@ -82,9 +82,10 @@ ar_scan (archive, function, arg)
|
||||||
{
|
{
|
||||||
#ifdef AIAMAG
|
#ifdef AIAMAG
|
||||||
FL_HDR fl_header;
|
FL_HDR fl_header;
|
||||||
|
#else
|
||||||
|
int long_name = 0;
|
||||||
#endif
|
#endif
|
||||||
char *namemap = 0;
|
char *namemap = 0;
|
||||||
int long_name = 0;
|
|
||||||
register int desc = open (archive, O_RDONLY, 0);
|
register int desc = open (archive, O_RDONLY, 0);
|
||||||
if (desc < 0)
|
if (desc < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -191,8 +192,6 @@ ar_scan (archive, function, arg)
|
||||||
|
|
||||||
name[name_len] = 0;
|
name[name_len] = 0;
|
||||||
|
|
||||||
long_name = 1;
|
|
||||||
|
|
||||||
sscanf (member_header.ar_date, "%12ld", &dateval);
|
sscanf (member_header.ar_date, "%12ld", &dateval);
|
||||||
sscanf (member_header.ar_uid, "%12d", &uidval);
|
sscanf (member_header.ar_uid, "%12d", &uidval);
|
||||||
sscanf (member_header.ar_gid, "%12d", &gidval);
|
sscanf (member_header.ar_gid, "%12d", &gidval);
|
||||||
|
@ -203,7 +202,8 @@ ar_scan (archive, function, arg)
|
||||||
++data_offset;
|
++data_offset;
|
||||||
|
|
||||||
fnval =
|
fnval =
|
||||||
(*function) (desc, name, member_offset, data_offset, eltsize,
|
(*function) (desc, name, 0,
|
||||||
|
member_offset, data_offset, eltsize,
|
||||||
dateval, uidval, gidval,
|
dateval, uidval, gidval,
|
||||||
eltmode, arg);
|
eltmode, arg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue