Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4fa5edc

Browse files
committed
Remove last traces of --adduser/--no-adduser in createuser
8ae0d47 marked those options as obsolete back in 2005, with the optionsremoved from the documentation. This removes the last references toboth options in the code which were kept around for compatibilitypurposes with past commands.Author: Alexander LakhinDiscussion:https://postgr.es/m/5da284a2-62d9-e338-88d1-26ee5009d93e@gmail.com
1 parent57379cd commit4fa5edc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎src/bin/scripts/createuser.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ main(int argc, char *argv[])
4343
{"replication",no_argument,NULL,1},
4444
{"no-replication",no_argument,NULL,2},
4545
{"interactive",no_argument,NULL,3},
46-
/* adduser is obsolete, undocumented spelling of superuser */
47-
{"adduser",no_argument,NULL,'a'},
48-
{"no-adduser",no_argument,NULL,'A'},
4946
{"connection-limit",required_argument,NULL,'c'},
5047
{"pwprompt",no_argument,NULL,'P'},
5148
{"encrypted",no_argument,NULL,'E'},
@@ -88,7 +85,7 @@ main(int argc, char *argv[])
8885

8986
handle_help_version_opts(argc,argv,"createuser",help);
9087

91-
while ((c=getopt_long(argc,argv,"h:p:U:g:wWedDsSaArRiIlLc:PE",
88+
while ((c=getopt_long(argc,argv,"h:p:U:g:wWedDsSrRiIlLc:PE",
9289
long_options,&optindex))!=-1)
9390
{
9491
switch (c)
@@ -121,11 +118,9 @@ main(int argc, char *argv[])
121118
createdb=TRI_NO;
122119
break;
123120
case's':
124-
case'a':
125121
superuser=TRI_YES;
126122
break;
127123
case'S':
128-
case'A':
129124
superuser=TRI_NO;
130125
break;
131126
case'r':

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp