diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-11-15 16:50:50 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-11-15 16:50:50 +0000 |
commit | 3ef14dc5033bcb02d48d8d842bac760ea2fd0cf1 (patch) | |
tree | 18a4977b3b1cc747e012e8aaa52c21a3e6b1e8ee /libnetfs | |
parent | 33539520d2e6b3789d2354c651b6e8a12ff21edd (diff) |
entered into RCS
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/file-check-access.c | 6 | ||||
-rw-r--r-- | libnetfs/file-chown.c | 2 | ||||
-rw-r--r-- | libnetfs/file-statfs.c | 2 | ||||
-rw-r--r-- | libnetfs/file-syncfs.c | 2 | ||||
-rw-r--r-- | libnetfs/file-utimes.c | 8 | ||||
-rw-r--r-- | libnetfs/io-read.c | 2 |
6 files changed, 10 insertions, 12 deletions
diff --git a/libnetfs/file-check-access.c b/libnetfs/file-check-access.c index 25a5963c..bd14f1e2 100644 --- a/libnetfs/file-check-access.c +++ b/libnetfs/file-check-access.c @@ -25,13 +25,11 @@ error_t netfs_S_file_check_access (struct protid *user, int *types) { - error_t err; - if (!user) return EOPNOTSUPP; mutex_lock (&user->po->np->lock); - err = netfs_report_access (user->credential, user->po->np, types); + netfs_report_access (user->credential, user->po->np, types); mutex_unlock (&user->po->np->lock); - return err; + return 0; } diff --git a/libnetfs/file-chown.c b/libnetfs/file-chown.c index 4082816b..d3484ba0 100644 --- a/libnetfs/file-chown.c +++ b/libnetfs/file-chown.c @@ -33,7 +33,7 @@ netfs_S_file_chown (struct protid *user, mutex_lock (&user->po->np->lock); err = netfs_attempt_chown (user->credential, user->po->np, - uid, gid); + owner, group); mutex_unlock (&user->po->np->lock); return err; } diff --git a/libnetfs/file-statfs.c b/libnetfs/file-statfs.c index b0a75a2b..40ac1a6b 100644 --- a/libnetfs/file-statfs.c +++ b/libnetfs/file-statfs.c @@ -23,7 +23,7 @@ error_t netfs_S_file_statfs (struct protid *user, - struct statfs *st) + struct fsys_statfsbuf *st) { error_t err; diff --git a/libnetfs/file-syncfs.c b/libnetfs/file-syncfs.c index fbc1b55e..13af70ff 100644 --- a/libnetfs/file-syncfs.c +++ b/libnetfs/file-syncfs.c @@ -28,7 +28,7 @@ netfs_S_file_syncfs (struct protid *user, { error_t err; - if (!cred) + if (!user) return EOPNOTSUPP; /* Translators not yet supported by netfs. XXX */ diff --git a/libnetfs/file-utimes.c b/libnetfs/file-utimes.c index a3e79946..47a8b883 100644 --- a/libnetfs/file-utimes.c +++ b/libnetfs/file-utimes.c @@ -29,10 +29,10 @@ netfs_S_file_utimes (struct protid *user, struct timespec atime, mtime; error_t err; - atime.ts_secs = atimein.seconds; - atime.ts_nsecs = atimein.microseconds * 1000; - mtime.ts_secs = mtimein.seconds; - mtime.ts_nsecs = mtimein.microseconds * 1000; + atime.ts_sec = atimein.seconds; + atime.ts_nsec = atimein.microseconds * 1000; + mtime.ts_sec = mtimein.seconds; + mtime.ts_nsec = mtimein.microseconds * 1000; if (!user) return EOPNOTSUPP; diff --git a/libnetfs/io-read.c b/libnetfs/io-read.c index dc19051e..29b70a45 100644 --- a/libnetfs/io-read.c +++ b/libnetfs/io-read.c @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include "netfs.h" -#inlcude "io_S.h" +#include "io_S.h" error_t netfs_S_io_read (struct protid *user, |