summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdike <jdike>2003-04-24 16:47:38 +0000
committerjdike <jdike>2003-04-24 16:47:38 +0000
commit43205052b9b42cf5b9e1428be63183e57a650318 (patch)
tree0e47b6bb91bbf82837450234cbf50327769ee342
parentd1fcafc436e1b0256b0a27fe057485917f40961d (diff)
downloaduml-history-43205052b9b42cf5b9e1428be63183e57a650318.tar.gz
Fixed a file creation mode bug.
-rw-r--r--arch/um/fs/hostfs/hostfs_kern.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/fs/hostfs/hostfs_kern.c b/arch/um/fs/hostfs/hostfs_kern.c
index f310136..a4615cf 100644
--- a/arch/um/fs/hostfs/hostfs_kern.c
+++ b/arch/um/fs/hostfs/hostfs_kern.c
@@ -507,9 +507,9 @@ int hostfs_create(struct inode *dir, struct dentry *dentry, int mode)
return(-ENOMEM);
}
error = file_create(name,
- mode | S_IRUSR, mode | S_IWUSR, mode | S_IXUSR,
- mode | S_IRGRP, mode | S_IWGRP, mode | S_IXGRP,
- mode | S_IROTH, mode | S_IWOTH, mode | S_IXOTH);
+ mode & S_IRUSR, mode & S_IWUSR, mode & S_IXUSR,
+ mode & S_IRGRP, mode & S_IWGRP, mode & S_IXGRP,
+ mode & S_IROTH, mode & S_IWOTH, mode & S_IXOTH);
if(!error) error = read_name(inode, name);
kfree(name);
if(error){