Browse Source

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

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

+ 2
- 2
pam_usb/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