servers/iso9660fs: drop unused function fs_access

As a consequence, remove protect.c which is now empty.

Change-Id: I675f9059510b3a22262f2bab4f18964a5356aa62
This commit is contained in:
Lionel Sambuc 2014-05-01 11:46:28 +02:00
parent 431911c1ff
commit 7ad108d1e7
2 changed files with 0 additions and 35 deletions

View file

@ -1,32 +0,0 @@
#include "inc.h"
#include <unistd.h>
#include <minix/callnr.h>
#include "buf.h"
#include <minix/vfsif.h>
/* This calling is used to access a particular file. */
/*===========================================================================*
* fs_access *
*===========================================================================*/
int fs_access()
{
struct dir_record *rip;
int r = OK;
/* Temporarily open the file whose access is to be checked. */
caller_uid = fs_m_in.REQ_UID;
caller_gid = fs_m_in.REQ_GID;
/* Temporarily open the file. */
if ( (rip = get_dir_record(fs_m_in.REQ_INODE_NR)) == NULL) {
printf("ISOFS(%d) get_dir_record by fs_access() failed\n", sef_self());
return(EINVAL);
}
/* For now ISO9660 doesn't have permission control (read and execution to
* everybody by default. So the access is always granted. */
release_dir_record(rip); /* Release the dir record used */
return(r);
}

View file

@ -40,9 +40,6 @@ int advance(struct dir_record *dirp, char string[NAME_MAX], struct
dir_record **resp); dir_record **resp);
int search_dir(struct dir_record *ldir_ptr,char string [NAME_MAX],pino_t *numb); int search_dir(struct dir_record *ldir_ptr,char string [NAME_MAX],pino_t *numb);
/* protect.c */
int fs_access(void);
/* read.c */ /* read.c */
int fs_read(void); int fs_read(void);
int fs_bread(void); int fs_bread(void);