~ubuntu-branches/ubuntu/raring/mysql-5.5/raring-proposed

« back to all changes in this revision

Viewing changes to packaging/rpm-uln/mysql-embedded-check.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-01-16 08:29:25 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130116082925-znscu5xswxo6pmw2
Tags: 5.5.29-0ubuntu1
* SECURITY UPDATE: Update to 5.5.29 to fix security issues (LP: #1100264)
  - http://www.oracle.com/technetwork/topics/security/cpujan2013-1515902.html
* debian/patches/CVE-2012-5611.patch: removed, included upstream.
* debian/patches/38_scripts__mysqld_safe.sh__signals.patch: refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* simple test program to see if we can link the embedded server library */
 
2
 
 
3
#include <stdio.h>
 
4
#include <stdlib.h>
 
5
#include <stdarg.h>
 
6
 
 
7
#include "mysql.h"
 
8
 
 
9
MYSQL *mysql;
 
10
 
 
11
static char *server_options[] = \
 
12
       { "mysql_test", "--defaults-file=my.cnf", NULL };
 
13
int num_elements = (sizeof(server_options) / sizeof(char *)) - 1;
 
14
 
 
15
static char *server_groups[] = { "libmysqld_server", 
 
16
                                 "libmysqld_client", NULL };
 
17
 
 
18
int main(int argc, char **argv)
 
19
{
 
20
   mysql_library_init(num_elements, server_options, server_groups);
 
21
   mysql = mysql_init(NULL);
 
22
   mysql_close(mysql);
 
23
   mysql_library_end();
 
24
 
 
25
   return 0;
 
26
}