commit - c65d179354fd3fd6f9719531f3414cf1c9c5280a
commit + 2738cc3cfc053a5922aee655405c0ab620beae0f
blob - 6869bacf8c7e1835f0d0dee7cfc6847871c7e14a
blob + 026641bddd6f6526789b5a71d912d440c9a5d9e7
--- src/cmd/mk/archive.c
+++ src/cmd/mk/archive.c
allspaces(char *a, int n)
{
int i;
- for (i = 0; i < n; i++) {
- if (a[i] != ' ') {
+
+ for(i=0; i<n; i++)
+ if(a[i] != ' ')
return 0;
- }
- }
+
return 1;
}
}else if(memcmp(h.name, "// ", 3) == 0){ /* GNU */
/* date, uid, gid, mode all ' ' */
if(!allspaces(&h.name[3], sizeof(h.name) - 3) ||
- !allspaces(h.date, sizeof(h.date)) || !allspaces(h.uid, sizeof(h.uid)) ||
- !allspaces(h.gid, sizeof(h.gid)) || !allspaces(h.mode, sizeof(h.mode))){
+ !allspaces(h.date, sizeof(h.date)) ||
+ !allspaces(h.uid, sizeof(h.uid)) ||
+ !allspaces(h.gid, sizeof(h.gid)) ||
+ !allspaces(h.mode, sizeof(h.mode)))
goto skip;
- }
t = atol(h.size);
if(t&01)
t++;