X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/a68924a6e07d69bc4b8d6106b3af0ac5a7490905..251b09710fa057c01df8d132b6e165bd3b6c9a34:/usr/src/cmd/strip.c diff --git a/usr/src/cmd/strip.c b/usr/src/cmd/strip.c index 80890c9b4a..8ef4a635c6 100644 --- a/usr/src/cmd/strip.c +++ b/usr/src/cmd/strip.c @@ -54,13 +54,12 @@ char *name; status = 1; goto out; } - if(head.a_syms == 0 && (head.a_flag&1) != 0) { + if ((head.a_syms == 0) && (head.a_trsize == 0) && (head.a_drsize ==0)) { printf("%s already stripped\n", name); goto out; } size = (long)head.a_text + head.a_data; - head.a_syms = 0; - head.a_flag |= 1; + head.a_syms = head.a_trsize = head.a_drsize = 0 ; lseek(tf, (long)0, 0); write(tf, (char *)&head, sizeof(head));