Skip to content

Commit

Permalink
pure-quotacheck: providing an uid even as a non-root user is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jul 31, 2016
1 parent 688d750 commit 1b1dc66
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pure-quotacheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,6 @@ int main(int argc, char *argv[])
{
struct passwd *pw;

if (uid > (uid_t) 0) {
fprintf(stderr, "You already gave an uid\n");
return -1;
}
if ((pw = getpwnam(optarg)) != NULL) {
uid = pw->pw_uid;
if (gid == (gid_t) 0) {
Expand Down

0 comments on commit 1b1dc66

Please sign in to comment.