Restore reading of the configuration file on stdin.

This feature is was dropped by accident in commit e1d3dc56.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-21 18:03:45 +02:00
parent 20c3dc5ed1
commit 07b016cd44
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ int config_read(char *name, struct config *cfg)
char line[1024];
int current_port;
fp = fopen(name, "r");
fp = 0 == strncmp(name, "-", 2) ? stdin : fopen(name, "r");
if (!fp) {
perror("fopen");