]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/userdb.c
userdb: return ESRCH if we didn't find a single varlink service
[thirdparty/systemd.git] / src / shared / userdb.c
index 3e08b339f5b861aabf0a21d1b598d56d671f0d00..33a1442460eb23f47d99f22e53ee0decb7921330 100644 (file)
@@ -510,7 +510,7 @@ static int userdb_start_query(
         }
 
         if (set_isempty(iterator->links))
-                return ret; /* propagate last error we saw if we couldn't connect to anything. */
+                return ret < 0 ? ret : -ESRCH; /* propagate last error we saw if we couldn't connect to anything. */
 
         /* We connected to some services, in this case, ignore the ones we failed on */
         return 0;