Hide more debugging behind isDebug(); what's currently

spewing out will only alarm people.
This commit is contained in:
jkh 2000-02-18 03:06:43 +00:00
parent c7531fe35c
commit f657eab6de

View File

@ -335,13 +335,15 @@ MakeDev(struct chunk *c1, const char *path)
if (slice > 32)
return 0;
if ((pwd = getpwnam("root")) == NULL) {
msgDebug("MakeDev: Unable to lookup user \"root\".\n");
if (isDebug())
msgDebug("MakeDev: Unable to lookup user \"root\", using 0.\n");
owner = 0;
} else {
owner = pwd->pw_uid;
}
if ((grp = getgrnam("operator")) == NULL) {
msgDebug("MakeDev: Unable to lookup group \"operator\".\n");
if (isDebug())
msgDebug("MakeDev: Unable to lookup group \"operator\", using 5.\n");
group = 5;
} else {
group = grp->gr_gid;