From 84ec12aa207cb8d5323b63847bfd8115881f2886 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Wed, 2 May 2001 09:32:22 +0000 Subject: Added mntopt.h to dependencies in Makefile.in. Fixed MNTTYPE_REISER to proper string. sprintf->snprintf Merged Marco's patch with errstr(), configurable BSD behaviour Fixed bug in quota detection IO code now opens file only RO if possible. IO code now doesn't open file if not required. Fixed bug in quotaon. Updated all manpages. --- rquota_server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rquota_server.c') diff --git a/rquota_server.c b/rquota_server.c index 7468661..caa1327 100644 --- a/rquota_server.c +++ b/rquota_server.c @@ -9,7 +9,7 @@ * * This part does the lookup of the info. * - * Version: $Id: rquota_server.c,v 1.1 2001/03/23 12:03:27 jkar8572 Exp $ + * Version: $Id: rquota_server.c,v 1.2 2001/05/02 09:32:22 jkar8572 Exp $ * * Author: Marco van Wieringen * @@ -177,7 +177,7 @@ setquota_rslt *setquotainfo(int flags, caddr_t * argp, struct svc_req *rqstp) continue; if (st.st_dev != device) continue; - if (!(handles[0] = init_io(mnt, type, -1))) + if (!(handles[0] = init_io(mnt, type, -1, 0))) continue; break; } @@ -281,7 +281,7 @@ getquota_rslt *getquotainfo(int flags, caddr_t * argp, struct svc_req * rqstp) continue; if (st.st_dev != device) continue; - if (!(handles[0] = init_io(mnt, type, -1))) + if (!(handles[0] = init_io(mnt, type, -1, IOI_READONLY))) continue; break; } -- cgit v1.2.3