fixed
This commit is contained in:
parent
e82070ed99
commit
e7a813d834
@ -1,7 +1,7 @@
|
||||
# micro-utils
|
||||
[Compile]
|
||||
cc builder.c -obuilder
|
||||
./buulder
|
||||
./builder
|
||||
|
||||
[or]
|
||||
sh build.sh
|
||||
|
5
TODO
5
TODO
@ -53,11 +53,6 @@ Loginutils:
|
||||
delgroup
|
||||
getty
|
||||
|
||||
Console-tools:
|
||||
loadkmap
|
||||
openvt
|
||||
chvt
|
||||
|
||||
Miscutils:
|
||||
time
|
||||
|
||||
|
@ -59,14 +59,8 @@ int main(const int argc, const char **argv) {
|
||||
else if (!strcmp(argv[i], "-z"))
|
||||
z_flag = 1;
|
||||
|
||||
else if (!strncmp(argv[i], "-n=", 3)) {
|
||||
char *val = strchr(argv[i], '=');
|
||||
if (!val)
|
||||
break;
|
||||
|
||||
val[0] = '\0';
|
||||
n_loops = atoi(val + 1);
|
||||
}
|
||||
else if (!strncmp(argv[i], "-n=", 3)
|
||||
n_loops = atoi(argv[i] + 3);
|
||||
|
||||
else if (!strcmp(argv[i], "--help")) {
|
||||
printf("shred [-n=N Overwrite N times (default 3)] [-z Final overwrite with zeros] [-u Remove file] [-f Chmod to ensure writability] [file file2...]\n");
|
||||
|
Loading…
Reference in New Issue
Block a user