openbsd-ports

OpenBSD Ports customizations and WIP
git clone git://git.danielmoch.com/openbsd-ports.git
Log | Files | Refs

patch-notmuch-restore_c (445B)


      1 $OpenBSD$
      2 
      3 OpenBSD zlib is too old for gzclose_r.
      4 
      5 Index: notmuch-restore.c
      6 --- notmuch-restore.c.orig
      7 +++ notmuch-restore.c
      8 @@ -449,7 +449,7 @@ notmuch_restore_command (notmuch_config_t *config, int
      9      if (notmuch)
     10  	notmuch_database_destroy (notmuch);
     11  
     12 -    if (input && gzclose_r (input)) {
     13 +    if (input && gzclose (input)) {
     14  	fprintf (stderr, "Error closing %s: %s\n",
     15  		 name_for_error, gzerror (input, NULL));
     16  	ret = EXIT_FAILURE;