From d6e73675ba176b91caee7ab54ceec87632d6f21f Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 20 May 1995 01:27:32 +0000 Subject: (diskfs_S_fsys_set_options): Extract the argument vector and call diskfs_set_options. --- libdiskfs/fsys-options.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'libdiskfs/fsys-options.c') diff --git a/libdiskfs/fsys-options.c b/libdiskfs/fsys-options.c index 6bb5b55d..e52f582e 100644 --- a/libdiskfs/fsys-options.c +++ b/libdiskfs/fsys-options.c @@ -1,6 +1,6 @@ -/* - Copyright (C) 1994 Free Software Foundation, Inc. - Written by Michael I. Bushnell. +/* Parse run-time options + + Copyright (C) 1995 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -18,6 +18,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include +#include + #include "priv.h" #include "fsys_S.h" @@ -27,5 +30,10 @@ diskfs_S_fsys_set_options (fsys_t fsys, char *data, mach_msg_type_number_t len, int do_children) { - return EOPNOTSUPP; + int argc = argz_count (data, len); + char **argv = alloca (sizeof (char *) * (argc + 1)); + + argz_extract (data, len, argv); + + return diskfs_set_options (argc, argv); } -- cgit v1.2.3