~clint-fewbar/ubuntu/natty/mysql-5.1/merge-5.1.49-2

« back to all changes in this revision

Viewing changes to extra/my_print_defaults.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-08-04 13:18:27 UTC
  • mfrom: (1.2.2 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100804131827-4tjg88vr9dd49s3k
Tags: 5.1.49-1ubuntu1
* Merge from debian unstable:
  + debian/control:
     * Update maintainer according to spec.
     * Move section from "misc" to "database".
     * Added libmysqlclient16-dev an empty transitional package. 
     * Added mysql-client-core-5.1 package.
     * Suggest mailx for mysql-server-5.1
     * Add mysql-testsuite package so you can run the testsuite seperately.
  + debian/additions/my.cnf:
    * Remove language options. Error message files are located in a different directory in Mysql
      5.0. Setting the language option to use /usr/share/mysql/english breaks Mysql 5.0. Both 5.0
      and 5.1 use a different value that works. (LP: #316974)
  + Add apparmor profile:
    + debian/apparmor-profile: apparmor-profile
    + debian/rules, debian/mysql-server-5.1.files: install apparmor profile
    + debian/mysql-server-5.1.dirs: add etc/apparmor.d/fore-complain
    + debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on purge.
    + debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    + debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    + debian/mysql-server-5.1.postinst: reload apparmor profiles
  * Convert the package from sysvinit to upstart:
    + debian/mysql-server-5.1.mysql.upstart: Add upstart script.
    + debian/mysql-server-5.1.mysql.init: Dropped, unused now with upstart.
    + debian/additions/mysqld_safe_syslog.cnf: Dropped, unused now with upstart.
    + debian/additons/my.cnf: Remove pid declaration and setup error logging to /var/log/mysql since
      we're not piping anything around logger anymore.
    + debian/rules, debian/mysql-server-5.1.logcheck.ignore.{paranoid,worstation},
      debian/mysql-server-5.1.logcheck.ignore.server: : Remove references to mysqld_safe
    + debian/patches/38_scripts_mysqld_safe.sh_signals.dpatch: Dropped
  * Added -fno-strict-aliasing to CFLAGS to get around mysql testsuite build failures.
  * Add Apport hook (LP: #354188):
    + debian/mysql-server-5.1.py: apport package hook
    + debian/rules: Make it installable
  * debian/mysql-server-5.1.mysql-server.logrotate: Check to see if mysql is running before
    running logrotate. (LP: #513135)
  * Make the testsuite installable. (LP: #530752)
    + debian/mysql-server-5.1.files, debian/rules: install apport package hook
  * debian/mysql-server-5.1.preinst: Set mysql user's home directory
    to /nonexistent to protect against having the /var/lib/mysql
    user-writeable. If an attacker can trick mysqld into creating
    dot files in the home directory, he could do .rhost-like attacks
    on the system. (LP: #293258)
  * debian/control: mysql-client-5.1 should depend on mysql-core-client-5.1.
    (LP: #590952) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
      searched for a file of this name (and standard filename extensions are
47
47
      added if the file has no extension)
48
48
  */
49
 
  {"config-file", 'c', "Deprecated, please use --defaults-file instead.  Name of config file to read; if no extension is given, default extension (e.g., .ini or .cnf) will be added",
50
 
   (uchar**) &config_file, (uchar**) &config_file, 0, GET_STR, REQUIRED_ARG,
 
49
  {"config-file", 'c', "Deprecated, please use --defaults-file instead. "
 
50
   "Name of config file to read; if no extension is given, default "
 
51
   "extension (e.g., .ini or .cnf) will be added",
 
52
   &config_file, &config_file, 0, GET_STR, REQUIRED_ARG,
51
53
   0, 0, 0, 0, 0, 0},
52
54
#ifdef DBUG_OFF
53
55
  {"debug", '#', "This is a non-debug version. Catch this and exit",
54
56
   0,0, 0, GET_DISABLED, OPT_ARG, 0, 0, 0, 0, 0, 0},
55
57
#else
56
 
  {"debug", '#', "Output debug log", (uchar**) &default_dbug_option,
57
 
   (uchar**) &default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
 
58
  {"debug", '#', "Output debug log", &default_dbug_option,
 
59
   &default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
58
60
#endif
59
 
  {"defaults-file", 'c', "Like --config-file, except: if first option, then read this file only, do not read global or per-user config files; should be the first option",
60
 
   (uchar**) &config_file, (uchar**) &config_file, 0, GET_STR, REQUIRED_ARG,
 
61
  {"defaults-file", 'c', "Like --config-file, except: if first option, "
 
62
   "then read this file only, do not read global or per-user config "
 
63
   "files; should be the first option",
 
64
   &config_file, &config_file, 0, GET_STR, REQUIRED_ARG,
61
65
   0, 0, 0, 0, 0, 0},
62
66
  {"defaults-extra-file", 'e',
63
 
   "Read this file after the global config file and before the config file in the users home directory; should be the first option",
64
 
   (uchar**) &my_defaults_extra_file, (uchar**) &my_defaults_extra_file, 0,
 
67
   "Read this file after the global config file and before the config "
 
68
   "file in the users home directory; should be the first option",
 
69
   &my_defaults_extra_file, &my_defaults_extra_file, 0,
65
70
   GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
66
71
  {"defaults-group-suffix", 'g',
67
72
   "In addition to the given groups, read also groups with this suffix",
68
 
   (uchar**) &my_defaults_group_suffix, (uchar**) &my_defaults_group_suffix,
 
73
   &my_defaults_group_suffix, &my_defaults_group_suffix,
69
74
   0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
70
75
  {"extra-file", 'e',
71
76
   "Deprecated. Synonym for --defaults-extra-file.",
72
 
   (uchar**) &my_defaults_extra_file,
73
 
   (uchar**) &my_defaults_extra_file, 0, GET_STR,
 
77
   &my_defaults_extra_file,
 
78
   &my_defaults_extra_file, 0, GET_STR,
74
79
   REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
75
80
  {"no-defaults", 'n', "Return an empty string (useful for scripts).",
76
81
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},