[Cvs-nserver-commits] CVS: cvs-nserver/acl acl.c,NONE,1.1.2.1 acl.h,NONE,1.1.2.1
Brought to you by:
tyranny
From: Alexey M. <ty...@us...> - 2001-08-26 20:44:30
|
Update of /cvsroot/cvs-nserver/cvs-nserver/acl In directory usw-pr-cvs1:/tmp/cvs-serv710 Added Files: Tag: NCLI-1-11-1 acl.c acl.h Log Message: Access Control Lists implementation --- NEW FILE: acl.c --- /* 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 the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Copyright (c) Alexey Mahotkin <al...@hs...> 2001 Access Control Lists implementation */ #include "acl.h" #include <stdlib.h> DIR_ACL * start_acl_traverse (char *dir) { struct DIR_ACL *dir_acl = malloc(sizeof(struct DIR_ACL)); if (dir_acl == NULL) return NULL; return dir_acl; } int check_reading (DIR_ACL *dir_acl, char *file) { return 0; } --- NEW FILE: acl.h --- /* 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 the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Copyright (c) Alexey Mahotkin <al...@hs...> 2001 Access Control Lists implementation */ #ifndef ACL_H #define ACL_H 1 struct DIR_ACL { }; typedef struct DIR_ACL DIR_ACL; DIR_ACL *start_acl_traverse(char *dir); int check_reading (DIR_ACL* dir_acl, char *file); #endif /* ACL_H */ |