From 7ad108d1e7086703ce93300d5ef25153b5559807 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 1 May 2014 11:46:28 +0200 Subject: [PATCH] servers/iso9660fs: drop unused function fs_access As a consequence, remove protect.c which is now empty. Change-Id: I675f9059510b3a22262f2bab4f18964a5356aa62 --- servers/iso9660fs/protect.c | 32 -------------------------------- servers/iso9660fs/proto.h | 3 --- 2 files changed, 35 deletions(-) delete mode 100644 servers/iso9660fs/protect.c diff --git a/servers/iso9660fs/protect.c b/servers/iso9660fs/protect.c deleted file mode 100644 index 632dea793..000000000 --- a/servers/iso9660fs/protect.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "inc.h" -#include -#include -#include "buf.h" - -#include - -/* 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); -} diff --git a/servers/iso9660fs/proto.h b/servers/iso9660fs/proto.h index e9185f29e..52b5d051b 100644 --- a/servers/iso9660fs/proto.h +++ b/servers/iso9660fs/proto.h @@ -40,9 +40,6 @@ int advance(struct dir_record *dirp, char string[NAME_MAX], struct dir_record **resp); int search_dir(struct dir_record *ldir_ptr,char string [NAME_MAX],pino_t *numb); -/* protect.c */ -int fs_access(void); - /* read.c */ int fs_read(void); int fs_bread(void);