Skip to content

Commit

Permalink
Bugfix: github issue #11, failed to recognize postgres as a valid use…
Browse files Browse the repository at this point in the history
…rname.
  • Loading branch information
mckenfra committed Nov 10, 2015
1 parent a66de18 commit ec66d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PostgreSQL/Classes/PGServerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ - (BOOL)validateSettingsForServer:(PGServer *)server authorization:(Authorizatio
}

// Username
if (NonBlank(settings.username) && ![PGProcess runShellCommand:[NSString stringWithFormat:@"id -u %@", settings.username] forRootUser:YES authorization:authorization authStatus:authStatus error:error]) {
if (NonBlank(settings.username) && ![PGProcess runShellCommand:[NSString stringWithFormat:@"id -u %@ >/dev/null", settings.username] forRootUser:YES authorization:authorization authStatus:authStatus error:error]) {
settings.invalidUsername = @"No such user";
}

Expand Down

0 comments on commit ec66d49

Please sign in to comment.