Группа :: Работа с файлами
Пакет: gnupg
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: gnupg-1.4.1-alt-always_trust.patch
--- gnupg-1.4.1/g10/g10.c.orig 2005-01-20 14:42:03 +0300
+++ gnupg-1.4.1/g10/g10.c 2005-03-18 01:20:03 +0300
@@ -2964,7 +2964,7 @@ main( int argc, char **argv )
break;
case aExportOwnerTrust: rc = setup_trustdb( 0, trustdb_name ); break;
case aListTrustDB: rc = setup_trustdb( argc? 1:0, trustdb_name ); break;
- default: rc = setup_trustdb(1, trustdb_name ); break;
+ default: rc = setup_trustdb( opt.trust_model != TM_ALWAYS, trustdb_name ); break;
}
if( rc )
log_error(_("failed to initialize the TrustDB: %s\n"), g10_errstr(rc));
--- gnupg-1.4.1/g10/trustdb.c.orig 2005-02-06 20:38:43 +0300
+++ gnupg-1.4.1/g10/trustdb.c 2005-03-17 20:12:16 +0300
@@ -1056,6 +1056,9 @@ get_validity (PKT_public_key *pk, PKT_us
u32 kid[2];
PKT_public_key *main_pk;
+ if (opt.trust_model == TM_ALWAYS)
+ return TRUST_ULTIMATE;
+
if(uid)
namehash_from_uid(uid);