don't munge argv strings -- copy them first. avoids 'w' showing:
authorderaadt <deraadt@openbsd.org>
Fri, 3 May 1996 15:01:44 +0000 (15:01 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 3 May 1996 15:01:44 +0000 (15:01 +0000)
    deraadt  p8 zeus.theos.com    8:26AM     3 dd if of bs

bin/dd/args.c

index 7c81764..97ed5bd 100644 (file)
@@ -105,6 +105,7 @@ jcl(argv)
        in.dbsz = out.dbsz = 512;
 
        while (oper = *++argv) {
+               oper = strdup(oper);
                if ((arg = strchr(oper, '=')) == NULL)
                        errx(1, "unknown operand %s", oper);
                *arg++ = '\0';