1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

See ChangeLog: Wed Aug 4 10:34:46 CEST 1999 Werner Koch

This commit is contained in:
Werner Koch 1999-08-04 08:45:27 +00:00
parent a5a8312251
commit 28c861268d
31 changed files with 2354 additions and 1606 deletions

View file

@ -385,7 +385,7 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr,
}
}
else {
if (!opt.no_literal)
if (!opt.no_literal) {
if( fname || opt.set_filename ) {
char *s = make_basename( opt.set_filename ? opt.set_filename : fname );
pt = m_alloc( sizeof *pt + strlen(s) - 1 );
@ -397,6 +397,7 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr,
pt = m_alloc( sizeof *pt - 1 );
pt->namelen = 0;
}
}
if( fname ) {
if( !(filesize = iobuf_get_filelength(inp)) )
@ -412,7 +413,7 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr,
}
else
filesize = opt.set_filesize ? opt.set_filesize : 0; /* stdin */
if (!opt.no_literal) {
pt->timestamp = make_timestamp();
pt->mode = opt.textmode && !outfile ? 't':'b';
@ -441,7 +442,7 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr,
/* catch errors from above blocks */
if (rc)
goto leave;
goto leave;
/* loop over the secret certificates */
for( sk_rover = sk_list; sk_rover; sk_rover = sk_rover->next ) {