Fixed type of argument for file creation

This commit is contained in:
jpandre 2008-09-21 17:27:21 +00:00
parent e5286c09d6
commit cbca88095d
3 changed files with 7 additions and 7 deletions

View File

@ -65,9 +65,9 @@ extern u64 ntfs_inode_lookup_by_name(ntfs_inode *dir_ni,
extern ntfs_inode *ntfs_pathname_to_inode(ntfs_volume *vol, ntfs_inode *parent,
const char *pathname);
extern ntfs_inode *ntfs_create(ntfs_inode *dir_ni, le32 securid,
ntfschar *name, u8 name_len, dev_t type);
ntfschar *name, u8 name_len, mode_t type);
extern ntfs_inode *ntfs_create_device(ntfs_inode *dir_ni, le32 securid,
ntfschar *name, u8 name_len, dev_t type, dev_t dev);
ntfschar *name, u8 name_len, mode_t type, dev_t dev);
extern ntfs_inode *ntfs_create_symlink(ntfs_inode *dir_ni, le32 securid,
ntfschar *name, u8 name_len, ntfschar *target, int target_len);
extern int ntfs_check_empty_dir(ntfs_inode *ni);

View File

@ -1153,7 +1153,7 @@ err_out:
* on error with errno set to the error code.
*/
static ntfs_inode *__ntfs_create(ntfs_inode *dir_ni, le32 securid,
ntfschar *name, u8 name_len, dev_t type, dev_t dev,
ntfschar *name, u8 name_len, mode_t type, dev_t dev,
ntfschar *target, int target_len)
{
ntfs_inode *ni;
@ -1396,7 +1396,7 @@ err_out:
*/
ntfs_inode *ntfs_create(ntfs_inode *dir_ni, le32 securid, ntfschar *name,
u8 name_len, dev_t type)
u8 name_len, mode_t type)
{
if (type != S_IFREG && type != S_IFDIR && type != S_IFIFO &&
type != S_IFSOCK) {
@ -1407,7 +1407,7 @@ ntfs_inode *ntfs_create(ntfs_inode *dir_ni, le32 securid, ntfschar *name,
}
ntfs_inode *ntfs_create_device(ntfs_inode *dir_ni, le32 securid,
ntfschar *name, u8 name_len, dev_t type, dev_t dev)
ntfschar *name, u8 name_len, mode_t type, dev_t dev)
{
if (type != S_IFCHR && type != S_IFBLK) {
ntfs_log_error("Invalid arguments.\n");

View File

@ -1072,7 +1072,7 @@ static int ntfs_fuse_access(const char *path, int type)
#endif
static int ntfs_fuse_create(const char *org_path, dev_t typemode, dev_t dev,
static int ntfs_fuse_create(const char *org_path, mode_t typemode, dev_t dev,
const char *target)
{
char *name;
@ -1083,7 +1083,7 @@ static int ntfs_fuse_create(const char *org_path, dev_t typemode, dev_t dev,
char *path;
ntfschar *stream_name;
int stream_name_len;
dev_t type = typemode & ~07777;
mode_t type = typemode & ~07777;
mode_t perm;
struct SECURITY_CONTEXT security;
int res = 0, uname_len, utarget_len;