regen
diff --git a/man/zip_file_extra_field_delete.man b/man/zip_file_extra_field_delete.man index 11d9251..2b5a351 100644 --- a/man/zip_file_extra_field_delete.man +++ b/man/zip_file_extra_field_delete.man
@@ -29,7 +29,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.TH ZIP_FILE_EXTRA_FIELD_DELETE 3 "February 20, 2013" NiH +.TH ZIP_FILE_EXTRA_FIELD_DELETE 3 "July 31, 2013" NiH .SH "NAME" zip_file_extra_field_delete , \- .Nm zip_file_extra_field_delete_by_id delete extra field for file in zip @@ -55,7 +55,7 @@ in the zip archive. .PP If -\fBindex\fR +\fBextra_field_index\fR is \fBZIP_EXTRA_FIELD_ALL,\fR then all extra fields will be deleted. @@ -85,7 +85,21 @@ The other arguments are the same as for zip_file_extra_field_delete \fB( ZIP_EXTRA_FIELD_ALL\fR -will delete all extra fields the specified ID). +will delete all extra fields of the specified ID). +.PP +Please note that due to the library design, the index of an extra +field may be different between central directory and local file +headers. +For this reason, it is not allowed to specify both +\fBZIP_FL_CENTRAL\fR +and +\fBZIP_FL_LOCAL\fR +in +\fBflags,\fR +except when deleting all extra fields (i.e., +\fBextra_field_index\fR +being +\fBZIP_EXTRA_FIELD_ALL ).\fR .SH "RETURN VALUES" Upon successful completion 0 is returned. Otherwise, \-1 is returned and the error code in
diff --git a/man/zip_fopen.man b/man/zip_fopen.man index 5a19fbc..172e9dc 100644 --- a/man/zip_fopen.man +++ b/man/zip_fopen.man
@@ -1,5 +1,5 @@ .\" zip_fopen.mdoc \-- open file in zip archive for reading -.\" Copyright (C) 2003-2012 Dieter Baron and Thomas Klausner +.\" Copyright (C) 2003-2013 Dieter Baron and Thomas Klausner .\" .\" This file is part of libzip, a library to manipulate ZIP archives. .\" The authors can be contacted at <libzip@nih.at> @@ -29,7 +29,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.TH ZIP_FOPEN 3 "July 22, 2012" NiH +.TH ZIP_FOPEN 3 "June 26, 2013" NiH .SH "NAME" zip_fopen , \- .Nm zip_fopen_index open file in zip archive for reading @@ -106,12 +106,20 @@ [ZIP_ER_MEMORY] Required memory could not be allocated. .TP 4 +[ZIP_ER_NOPASSWD] +The file is encrypted, but no password has been provided. +.TP 4 [ZIP_ER_READ] A file read error occurred. .TP 4 [ZIP_ER_SEEK] A file seek error occurred. .TP 4 +[ZIP_ER_WRONGPASSWD] +The provided password does not match the password used for encryption. +Note that some incorrect passwords are not detected by the check done by +. +.TP 4 [ZIP_ER_ZLIB] Initializing the zlib stream failed. .RE