aboutsummaryrefslogtreecommitdiff
path: root/libnetfs/fsys-syncfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/fsys-syncfs.c')
-rw-r--r--libnetfs/fsys-syncfs.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libnetfs/fsys-syncfs.c b/libnetfs/fsys-syncfs.c
index b652890e..f57cb144 100644
--- a/libnetfs/fsys-syncfs.c
+++ b/libnetfs/fsys-syncfs.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 2001 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -23,15 +23,18 @@
error_t
netfs_S_fsys_syncfs (mach_port_t cntl,
+ mach_port_t reply,
+ mach_msg_type_name_t reply_type,
int wait,
int children)
{
- struct netcred *cred;
- uid_t root = 0;
+ struct iouser *cred;
error_t err;
- cred = netfs_make_credential (&root, 1, &root, 1);
+ err = iohelp_create_simple_iouser (&cred, 0, 0);
+ if (err)
+ return err;
err = netfs_attempt_syncfs (cred, wait);
- netfs_drop_credential (cred);
+ iohelp_free_iouser (cred);
return err;
}