[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libfuse/src netfs.c
From: |
Stefan Siegl |
Subject: |
libfuse/src netfs.c |
Date: |
Sat, 05 Aug 2006 19:02:36 +0000 |
CVSROOT: /sources/hurdextras
Module name: libfuse
Changes by: Stefan Siegl <stesie> 06/08/05 19:02:36
Modified files:
src : netfs.c
Log message:
netfs_attempt_syncfs is called with cred==NULL on filesystem shutdown,
changed it to not call test_allow_root_or_other in that case
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libfuse/src/netfs.c?cvsroot=hurdextras&r1=1.5&r2=1.6
Patches:
Index: netfs.c
===================================================================
RCS file: /sources/hurdextras/libfuse/src/netfs.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- netfs.c 4 Aug 2006 12:16:12 -0000 1.5
+++ netfs.c 5 Aug 2006 19:02:36 -0000 1.6
@@ -108,6 +108,8 @@
{
FUNC_PROLOGUE("test_allow_root_or_other");
+ assert(cred);
+
/* if allow_other is set, access is okay in any case */
if(libfuse_params.allow_other)
FUNC_RETURN_FMT(0, "allow_other is set");
@@ -554,7 +556,7 @@
FUNC_PROLOGUE("netfs_attempt_syncfs");
error_t err;
- if(test_allow_root_or_other(cred))
+ if(cred && test_allow_root_or_other(cred))
err = EPERM;
else
{