OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   20-Jun-2007 14:48:35
  Branch: HEAD                             Handle: 2007062013483400

  Modified files:
    openpkg-src/sqlite      sqlite.patch sqlite.spec

  Log:
    fix .sqliterc reading in sqlite(1)

  Summary:
    Revision    Changes     Path
    1.32        +27 -0      openpkg-src/sqlite/sqlite.patch
    1.141       +1  -1      openpkg-src/sqlite/sqlite.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/sqlite/sqlite.patch
  ============================================================================
  $ cvs diff -u -r1.31 -r1.32 sqlite.patch
  --- openpkg-src/sqlite/sqlite.patch   18 Jun 2007 17:25:19 -0000      1.31
  +++ openpkg-src/sqlite/sqlite.patch   20 Jun 2007 12:48:34 -0000      1.32
  @@ -120,3 +120,30 @@
    
    uninstall-3:
                $(LIBTOOL) --mode=uninstall \
  +Index: src/shell.c
  +--- src/shell.c      4 May 2007 13:15:56 -0000       1.162
  ++++ src/shell.c      20 Jun 2007 12:43:54 -0000
  +@@ -1753,6 +1753,7 @@
  +   char *home_dir = NULL;
  +   const char *sqliterc = sqliterc_override;
  +   char *zBuf = 0;
  ++  int n;
  +   FILE *in = NULL;
  + 
  +   if (sqliterc == NULL) {
  +@@ -1761,12 +1762,13 @@
  +       fprintf(stderr,"%s: cannot locate your home directory!\n", Argv0);
  +       return;
  +     }
  +-    zBuf = malloc(strlen(home_dir) + 15);
  ++    n = strlen(home_dir) + 15;
  ++    zBuf = malloc(n);
  +     if( zBuf==0 ){
  +       fprintf(stderr,"%s: out of memory!\n", Argv0);
  +       exit(1);
  +     }
  +-    sqlite3_snprintf(sizeof(zBuf), zBuf,"%s/.sqliterc",home_dir);
  ++    sqlite3_snprintf(n, zBuf,"%s/.sqliterc",home_dir);
  +     free(home_dir);
  +     sqliterc = (const char*)zBuf;
  +   }
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/sqlite/sqlite.spec
  ============================================================================
  $ cvs diff -u -r1.140 -r1.141 sqlite.spec
  --- openpkg-src/sqlite/sqlite.spec    18 Jun 2007 17:25:19 -0000      1.140
  +++ openpkg-src/sqlite/sqlite.spec    20 Jun 2007 12:48:34 -0000      1.141
  @@ -37,7 +37,7 @@
   Group:        Database
   License:      PD
   Version:      %{V_sqlite}
  -Release:      20070618
  +Release:      20070620
   
   #   package options
   %option       with_utf8            no
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to