diff options
author | Rob Landley <rob@landley.net> | 2018-03-19 11:23:24 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-03-19 11:23:24 -0500 |
commit | aa265ebff4fd94b1bfa152a116d6d5fa1971b727 (patch) | |
tree | 05cc0a32508602e0946b0371c3b60a3bd45d9596 /scripts | |
parent | 19a042b71f357ef2dbfa8002bc9c44d634f86af8 (diff) | |
download | toybox-aa265ebff4fd94b1bfa152a116d6d5fa1971b727.tar.gz |
Ryan Prichard pointed out that du -d0 should act like du -s, but the plumbing
wouldn't let him assign a negative default value, so I fixed it.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mkflags.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mkflags.c b/scripts/mkflags.c index e0e833ce..c96f7f55 100644 --- a/scripts/mkflags.c +++ b/scripts/mkflags.c @@ -110,6 +110,7 @@ struct flag *digest(char *string) if (strchr("?&^-:#|@*; ", *string)) string++; else if (strchr("=<>", *string)) { + if (string[1]=='-') string++; if (!isdigit(string[1])) { fprintf(stderr, "%c without number in '%s'", *string, err); exit(1); |