biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / srm / fix-output-in-verbose-mode.patch
blob966d7ba4612eadec9682d932dbf238717d121fb0
1 diff --git a/src/sunlink.c b/src/sunlink.c
2 index 7050713..ffcb8d3 100644
3 --- a/src/sunlink.c
4 +++ b/src/sunlink.c
5 @@ -468,6 +468,8 @@ static int overwrite_selector(struct srm_target *srm)
6 if(overwrite_byte(srm, 5, 0x00) < 0) return -1;
7 if(overwrite_byte(srm, 6, 0xFF) < 0) return -1;
8 if(overwrite_random(srm, 7, 1) < 0) return -1;
9 + if((srm->options&SRM_OPT_V) > 1)
10 + printf("\n");
12 else if(srm->options & SRM_MODE_DOE)
14 @@ -475,6 +477,8 @@ static int overwrite_selector(struct srm_target *srm)
15 error("US DoE mode");
16 if(overwrite_random(srm, 1, 2) < 0) return -1;
17 if(overwrite_bytes(srm, 3, 'D', 'o', 'E') < 0) return -1;
18 + if((srm->options&SRM_OPT_V) > 1)
19 + printf("\n");
21 else if(srm->options & SRM_MODE_OPENBSD)
23 @@ -483,12 +487,16 @@ static int overwrite_selector(struct srm_target *srm)
24 if(overwrite_byte(srm, 1, 0xFF) < 0) return -1;
25 if(overwrite_byte(srm, 2, 0x00) < 0) return -1;
26 if(overwrite_byte(srm, 3, 0xFF) < 0) return -1;
27 + if((srm->options&SRM_OPT_V) > 1)
28 + printf("\n");
30 else if(srm->options & SRM_MODE_SIMPLE)
32 if((srm->options&SRM_OPT_V) > 1)
33 error("Simple mode");
34 if(overwrite_byte(srm, 1, 0x00) < 0) return -1;
35 + if((srm->options&SRM_OPT_V) > 1)
36 + printf("\n");
38 else if(srm->options & SRM_MODE_RCMP)
40 @@ -497,6 +505,8 @@ static int overwrite_selector(struct srm_target *srm)
41 if(overwrite_byte(srm, 1, 0x00) < 0) return -1;
42 if(overwrite_byte(srm, 2, 0xFF) < 0) return -1;
43 if(overwrite_string(srm, 3, "RCMP") < 0) return -1;
44 + if((srm->options&SRM_OPT_V) > 1)
45 + printf("\n");
47 else
49 @@ -535,6 +545,8 @@ static int overwrite_selector(struct srm_target *srm)
50 if(overwrite_random(srm, 32, 4) < 0) return -1;
51 /* if you want to backup your partition or shrink your vmware image having the file zero-ed gives best compression results. */
52 if(overwrite_byte(srm, 36, 0x00) < 0) return -1;
53 + if((srm->options&SRM_OPT_V) > 1)
54 + printf("\n");
56 #if 0
57 if((srm->options & SRM_OPT_V) > 1)