~ubuntu-branches/ubuntu/utopic/mariadb-5.5/utopic-security

« back to all changes in this revision

Viewing changes to scripts/mysqld_safe.sh

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-08-27 21:12:36 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140827211236-se41hwfe4xy0hpef
* d/control: Removed Provides: libmysqlclient-dev (Closes: #759309)
* d/control: Removed Provides: libmysqld-dev with same motivation
* Re-introduced tha HPPA build patch as the upstream fix wasn't complete
* Fixed all kFreeBSD build and test suite issues
* Added Italian translation (Closes: #759813)

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
}
190
190
 
191
191
parse_arguments() {
192
 
  # We only need to pass arguments through to the server if we don't
193
 
  # handle them here.  So, we collect unrecognized options (passed on
194
 
  # the command line) into the args variable.
195
 
  pick_args=
196
 
  if test "$1" = PICK-ARGS-FROM-ARGV
197
 
  then
198
 
    pick_args=1
199
 
    shift
200
 
  fi
201
 
 
202
192
  for arg do
203
193
    # the parameter after "=", or the whole $arg if no match
204
194
    val=`echo "$arg" | sed -e 's;^--[^=]*=;;'`
255
245
      --help) usage ;;
256
246
 
257
247
      *)
258
 
        if test -n "$pick_args"
259
 
        then
260
 
          append_arg_to_args "$arg"
261
 
        fi
262
 
        ;;
 
248
        case "$unrecognized_handling" in
 
249
          collect) append_arg_to_args "$arg" ;;
 
250
          complain) log_error "unknown option '$arg'" ;;
 
251
        esac
263
252
    esac
264
253
  done
265
254
}
516
505
  SET_USER=0
517
506
fi
518
507
 
 
508
# If arguments come from [mysqld_safe] section of my.cnf
 
509
# we complain about unrecognized options
 
510
unrecognized_handling=complain
519
511
parse_arguments `$print_defaults $defaults --loose-verbose mysqld_safe safe_mysqld mariadb_safe`
520
 
parse_arguments PICK-ARGS-FROM-ARGV "$@"
 
512
 
 
513
# We only need to pass arguments through to the server if we don't
 
514
# handle them here.  So, we collect unrecognized options (passed on
 
515
# the command line) into the args variable.
 
516
unrecognized_handling=collect
 
517
parse_arguments "$@"
521
518
 
522
519
 
523
520
#