summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ddb7ffc)
raw | patch | inline | side by side (parent: ddb7ffc)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 11 Dec 2013 10:09:04 +0000 (11:09 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 11 Dec 2013 10:09:04 +0000 (11:09 +0100) |
src/client/sysdb.c | patch | blob | history |
diff --git a/src/client/sysdb.c b/src/client/sysdb.c
index fa71eed9d064b04d86037412988e5b10a5c1c7b6..c2b542d458e3aa2bbb1b4d5687f801a2b8d1a914 100644 (file)
--- a/src/client/sysdb.c
+++ b/src/client/sysdb.c
if (! host)
host = DEFAULT_SOCKET;
- if (! user)
+ if (! user) {
user = get_current_user();
+ if (! user)
+ exit(1);
+ }
client = sdb_client_create(host);
if (! client) {