From: Pierre Joye Date: Mon, 26 Aug 2002 00:39:56 +0000 (+0000) Subject: Set 'defaultuser' if 'USER' env not found X-Git-Tag: RELEASE_0_91~233 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f27a08b66bca80b9f90389497fe6fe760103bd8;p=php Set 'defaultuser' if 'USER' env not found --- diff --git a/pear/scripts/pearize.in b/pear/scripts/pearize.in index 490b49d1e8..1dea6087c3 100644 --- a/pear/scripts/pearize.in +++ b/pear/scripts/pearize.in @@ -66,7 +66,9 @@ function make_makefile_in() die("Could not create Makefile.in in current directory.\n"); } - $who = getenv("USER"); + if(!$user=getenv('USER')){ + $user='defaultuser'; + } $when = gmdate('Y-m-d h:i'); fwrite($wp, "# This file was generated by `pearize' by $who at $when GMT\n\n");