From 07b016cd444a247a2977a8227eb9a36258dc0404 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Tue, 21 Aug 2012 18:03:45 +0200 Subject: [PATCH] Restore reading of the configuration file on stdin. This feature is was dropped by accident in commit e1d3dc56. Signed-off-by: Richard Cochran --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 34d50f8..d48e4c0 100644 --- a/config.c +++ b/config.c @@ -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");