systemctl: no need to fdopen stdout
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user