Browse Source

Moved messages about pam_usb not being able to change the owner from

error to debug (they're just warnings)
Andrea Luzzardi 17 years ago
parent
commit
ef6d55ef34
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/pad.c

+ 2
- 2
src/pad.c View File

@ -122,13 +122,13 @@ static int pusb_pad_protect(const char *user, int fd)
} }
if (fchown(fd, user_ent->pw_uid, user_ent->pw_gid) == -1) if (fchown(fd, user_ent->pw_uid, user_ent->pw_gid) == -1)
{ {
log_error("Unable to change owner of the pad: %s\n",
log_debug("Unable to change owner of the pad: %s\n",
strerror(errno)); strerror(errno));
return (0); return (0);
} }
if (fchmod(fd, S_IRUSR | S_IWUSR) == -1) if (fchmod(fd, S_IRUSR | S_IWUSR) == -1)
{ {
log_error("Unable to change mode of the pad: %s\n",
log_debug("Unable to change mode of the pad: %s\n",
strerror(errno)); strerror(errno));
return (0); return (0);
} }


Loading…
Cancel
Save