chiark / gitweb /
systemctl: fix return value from cat
[elogind.git] / src / systemctl / systemctl.c
index 3e6a6883f6ec2509b5532a7947f83d53bd8f6008..327eb85ca1682fd4ee2989ba8b75fab4ddada4ac 100644 (file)
@@ -3821,7 +3821,7 @@ static int cat(sd_bus *bus, char **args) {
                 }
         }
 
-        return r;
+        return r < 0 ? r : 0;
 }
 
 static int show(sd_bus *bus, char **args) {