X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=user_list.c;h=75dca081c7685a112e29fbc79f98d5ae0a475c34;hp=54e27caa0d93bdea8960566196db649b22f0d815;hb=c60d17e2f5f4dd3addaf2af83abad99b460f8ad6;hpb=c2708c767b300a33c8636681ed4550d4f3be0ce0 diff --git a/user_list.c b/user_list.c index 54e27caa..75dca081 100644 --- a/user_list.c +++ b/user_list.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2006-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -70,10 +70,10 @@ static void populate_user_list(char *user_list_file) u->perms = 0; while (num > 0) { num--; - if (!strcmp(tmp[num], "AFS_READ")) - u->perms |= AFS_READ; - else if (!strcmp(tmp[num], "AFS_WRITE")) - u->perms |= AFS_WRITE; + if (!strcmp(tmp[num], "VSS_READ")) + u->perms |= VSS_READ; + else if (!strcmp(tmp[num], "VSS_WRITE")) + u->perms |= VSS_WRITE; else if (!strcmp(tmp[num], "DB_READ")) u->perms |= DB_READ; else if (!strcmp(tmp[num], "DB_WRITE")) @@ -119,7 +119,7 @@ void init_user_list(char *user_list_file) * * \return 1 on success and < 0 on errors. */ -int get_user(struct user *user) +int lookup_user(struct user *user) { struct user *u; list_for_each_entry(u, &user_list, node) {