| 1 |
|
| 2 |
Description: Write to the HIVE file |
| 3 |
Enable the experimental function that writes to the HIVE |
| 4 |
the user password |
| 5 |
|
| 6 |
Patch available at: https://github.com/rescatux/chntpw/commit/dcab306dbf49ace2e38e6874ce46bef10ee604da |
| 7 |
|
| 8 |
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803888 |
| 9 |
Forwarded: yes |
| 10 |
Origin: other |
| 11 |
Author: Adrian Gibanel Lopez <[email protected]> |
| 12 |
Reviewed-by: Javier Fernández-Sanguino |
| 13 |
|
| 14 |
--- a/sampasswd.c |
| 15 |
+++ b/sampasswd.c |
| 16 |
@@ -243,7 +243,7 @@ |
| 17 |
|
| 18 |
wret = 0; |
| 19 |
for (il = 0; il < no_hives; il++) { |
| 20 |
- // wret |= writeHive(hive[il]); |
| 21 |
+ wret |= writeHive(hive[il]); |
| 22 |
if (hive[il]->state & HMODE_DIDEXPAND) |
| 23 |
fprintf(stderr," WARNING: Registry file %s was expanded! Experimental! Use at own risk!\n",hive[il]->filename); |
| 24 |
while (no_hives > 0) |