typos in source comment

Started by Fujii Masaoover 16 years ago2 messages
#1Fujii Masao
masao.fujii@gmail.com
2 attachment(s)

Hi,

Here're the patches to fix typos in source comment.
typo_postgres.patch should be backported to v8.2 and v8.3.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Attachments:

typo_pgstandby.patchapplication/octet-stream; name=typo_pgstandby.patchDownload
Index: contrib/pg_standby/pg_standby.c
===================================================================
RCS file: /projects/cvsroot/pgsql/contrib/pg_standby/pg_standby.c,v
retrieving revision 1.23
diff -c -r1.23 pg_standby.c
*** contrib/pg_standby/pg_standby.c	11 Jun 2009 14:48:51 -0000	1.23
--- contrib/pg_standby/pg_standby.c	18 Jun 2009 08:45:19 -0000
***************
*** 448,454 ****
  		/*
  		 * Turn it into a "smart" trigger by truncating the file. Otherwise if
  		 * the server asks us again to restore a segment that was restored
! 		 * restored already, we would return "not found" and upset the server.
  		 */
  		if (ftruncate(fd, 0) < 0)
  		{
--- 448,454 ----
  		/*
  		 * Turn it into a "smart" trigger by truncating the file. Otherwise if
  		 * the server asks us again to restore a segment that was restored
! 		 * already, we would return "not found" and upset the server.
  		 */
  		if (ftruncate(fd, 0) < 0)
typo_postgres.patchapplication/octet-stream; name=typo_postgres.patchDownload
Index: src/backend/tcop/postgres.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/tcop/postgres.c,v
retrieving revision 1.567
diff -c -r1.567 postgres.c
*** src/backend/tcop/postgres.c	11 Jun 2009 14:49:02 -0000	1.567
--- src/backend/tcop/postgres.c	18 Jun 2009 08:45:45 -0000
***************
*** 2924,2931 ****
  	 *	If the databasename is omitted it is taken to be the user name.
  	 *
  	 *	When started from the postmaster, the format is
! 	 *		postgres [secure switches] -p databasename [insecure switches]
! 	 *	Switches appearing after -p came from the client (via "options"
  	 *	field of connection request).  For security reasons we restrict
  	 *	what these switches can do.
  	 * ----------------
--- 2924,2931 ----
  	 *	If the databasename is omitted it is taken to be the user name.
  	 *
  	 *	When started from the postmaster, the format is
! 	 *		postgres [secure switches] -y databasename [insecure switches]
! 	 *	Switches appearing after -y came from the client (via "options"
  	 *	field of connection request).  For security reasons we restrict
  	 *	what these switches can do.
  	 * ----------------
***************
*** 2938,2944 ****
  		argc--;
  	}
  
! 	/* all options are allowed until '-p' */
  	secure = true;
  	ctx = PGC_POSTMASTER;
  	gucsource = PGC_S_ARGV;		/* initial switches came from command line */
--- 2938,2944 ----
  		argc--;
  	}
  
! 	/* all options are allowed until '-y' */
  	secure = true;
  	ctx = PGC_POSTMASTER;
  	gucsource = PGC_S_ARGV;		/* initial switches came from command line */
#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Fujii Masao (#1)
Re: typos in source comment

Fujii Masao wrote:

Here're the patches to fix typos in source comment.
typo_postgres.patch should be backported to v8.2 and v8.3.

Thanks, applied.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com