systemctl: no need to fdopen stdout

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2013-12-04 22:29:51 +01:00
parent f7d8595113
commit 4fd944ec82
-3
View File
@@ -3690,7 +3690,6 @@ static int cat(sd_bus *bus, char **args) {
_cleanup_free_ char *fragment_path = NULL;
_cleanup_strv_free_ char **dropin_paths = NULL;
sd_bus_error error;
FILE *stdout;
char **path;
n = unit_name_mangle(*name);
@@ -3731,8 +3730,6 @@ static int cat(sd_bus *bus, char **args) {
continue;
}
stdout = fdopen(STDOUT_FILENO, "a");
if (!isempty(fragment_path)) {
fprintf(stdout, "# %s\n", fragment_path);
fflush(stdout);