~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-security

« back to all changes in this revision

Viewing changes to client/mysql_plugin.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2016-01-25 09:32:24 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20160125093224-xq3a7ej0fxcmjmpc
Tags: 5.5.47-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.47 to fix security issues (LP: #1537750)
  - http://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html
  - CVE-2016-0505
  - CVE-2016-0546
  - CVE-2016-0596
  - CVE-2016-0597
  - CVE-2016-0598
  - CVE-2016-0600
  - CVE-2016-0606
  - CVE-2016-0608
  - CVE-2016-0609
  - CVE-2016-0616
* debian/patches/fix_testsuite_date.patch: removed, upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
   Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 
2
   Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
406
406
static void usage(void)
407
407
{
408
408
  PRINT_VERSION;
409
 
  puts("Copyright (c) 2011, Oracle and/or its affiliates. "
 
409
  puts("Copyright (c) 2011, 2015, Oracle and/or its affiliates. "
410
410
       "All rights reserved.\n");
411
411
  puts("Enable or disable plugins.");
412
412
  printf("\nUsage: %s [options] <plugin> ENABLE|DISABLE\n\nOptions:\n",
757
757
    /* read the plugin config file and check for match against argument */
758
758
    else
759
759
    {
 
760
      if (strlen(argv[i]) + 4 + 1 > FN_REFLEN)
 
761
      {
 
762
        fprintf(stderr, "ERROR: argument is too long.\n");
 
763
        return 1;
 
764
      }
760
765
      strcpy(plugin_name, argv[i]);
761
766
      strcpy(config_file, argv[i]);
762
767
      strcat(config_file, ".ini");
848
853
    if (opt_basedir[i-1] != FN_LIBCHAR || opt_basedir[i-1] != FN_LIBCHAR2)
849
854
    {
850
855
      char buff[FN_REFLEN];
 
856
      memset(buff, 0, sizeof(buff));
851
857
      
852
858
      strncpy(buff, opt_basedir, sizeof(buff) - 1);
853
859
#ifdef __WIN__