Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Latest patched development version



Sven Wischnowsky wrote:
> While fighting with this I also got an error in utils.c. In the
> function get_username() after the `#else' the variable current_uid is
> used but not defined.

The following is the only re-interpretation which makes sense to me.

*** Src/utils.c.uid	Tue Dec 15 09:59:21 1998
--- Src/utils.c	Tue Dec 15 13:35:46 1998
***************
*** 427,433 ****
  	    cached_username = ztrdup("");
      }
  #else /* !HAVE_GETPWUID */
!     cached_uid = current_uid;
  #endif /* !HAVE_GETPWUID */
      return cached_username;
  }
--- 427,433 ----
  	    cached_username = ztrdup("");
      }
  #else /* !HAVE_GETPWUID */
!     cached_uid = getuid();
  #endif /* !HAVE_GETPWUID */
      return cached_username;
  }

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author