patch-2.1.132 linux/fs/coda/coda_linux.c
Next file: linux/fs/coda/dir.c
Previous file: linux/fs/coda/cnode.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Fri Dec 18 12:45:00 1998
- Orig file:
v2.1.131/linux/fs/coda/coda_linux.c
- Orig date:
Thu Jul 16 18:09:28 1998
diff -u --recursive --new-file v2.1.131/linux/fs/coda/coda_linux.c linux/fs/coda/coda_linux.c
@@ -44,8 +44,8 @@
/* recognize special .CONTROL name */
int coda_iscontrol(const char *name, size_t length)
{
- if ((CFS_CONTROLLEN == length) &&
- (strncmp(name, CFS_CONTROL, CFS_CONTROLLEN) == 0))
+ if ((CODA_CONTROLLEN == length) &&
+ (strncmp(name, CODA_CONTROL, CODA_CONTROLLEN) == 0))
return 1;
return 0;
}
@@ -104,7 +104,7 @@
cred->cr_suid = (vuid_t) current->suid;
cred->cr_fsuid = (vuid_t) current->fsuid;
- cred->cr_gid = (vgid_t) current->gid;
+ cred->cr_groupid = (vgid_t) current->gid;
cred->cr_egid = (vgid_t) current->egid;
cred->cr_sgid = (vgid_t) current->sgid;
cred->cr_fsgid = (vgid_t) current->fsgid;
@@ -142,6 +142,11 @@
if ( flags & O_TRUNC ) {
CDEBUG(D_FILE, "--> C_O_TRUNC added\n");
coda_flags |= C_O_TRUNC;
+ }
+
+ if ( flags & O_CREAT ) {
+ CDEBUG(D_FILE, "--> C_O_CREAT added\n");
+ coda_flags |= C_O_CREAT;
}
if ( flags & O_EXCL ) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov