chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update Fedora rules
[elogind.git]
/
udev_libc_wrapper.c
diff --git
a/udev_libc_wrapper.c
b/udev_libc_wrapper.c
index a7a8c5342d481e53fe38842afe91d60eba90db0c..1711811e83f0483fadc94e8a46a39c0876f50285 100644
(file)
--- a/
udev_libc_wrapper.c
+++ b/
udev_libc_wrapper.c
@@
-25,12
+25,10
@@
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
+#include <errno.h>
#include <sys/types.h>
#include <sys/types.h>
-#include "udev_libc_wrapper.h"
#include "udev.h"
#include "udev.h"
-#include "udev_utils.h"
-#include "logging.h"
#ifdef __KLIBC__
#define __OWN_USERDB_PARSER__
#ifdef __KLIBC__
#define __OWN_USERDB_PARSER__
@@
-102,7
+100,7
@@
uid_t lookup_user(const char *user)
pw = getpwnam(user);
if (pw == NULL)
pw = getpwnam(user);
if (pw == NULL)
-
dbg
("specified user unknown '%s'", user);
+
info
("specified user unknown '%s'", user);
else
uid = pw->pw_uid;
else
uid = pw->pw_uid;
@@
-116,7
+114,7
@@
gid_t lookup_group(const char *group)
gr = getgrnam(group);
if (gr == NULL)
gr = getgrnam(group);
if (gr == NULL)
-
dbg
("specified group unknown '%s'", group);
+
info
("specified group unknown '%s'", group);
else
gid = gr->gr_gid;
else
gid = gr->gr_gid;
@@
-144,7
+142,7
@@
static unsigned long get_id_by_name(const char *uname, const char *dbfile)
char *tail;
if (file_map(dbfile, &buf, &bufsize) != 0) {
char *tail;
if (file_map(dbfile, &buf, &bufsize) != 0) {
-
dbg
("can't open '%s' as db file: %s", dbfile, strerror(errno));
+
err
("can't open '%s' as db file: %s", dbfile, strerror(errno));
return 0;
}
dbg("search '%s' in '%s'", uname, dbfile);
return 0;
}
dbg("search '%s' in '%s'", uname, dbfile);