diff options
author | jkar8572 <jkar8572> | 2003-05-21 19:51:10 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2003-05-21 19:51:10 +0000 |
commit | c147aff8c4aa5dc40be9e7c365ec8e01479dba95 (patch) | |
tree | ff4591e2e3d7f9bc1ede82acfcc742d851c0b9b8 /rquota_server.c | |
parent | bf472d4a01cd28543806252801af430c2af56cf7 (diff) | |
download | linuxquota-c147aff8c4aa5dc40be9e7c365ec8e01479dba95.tar.gz |
Added forgotten handling of autofs mountpoints to rpc.rquotad.
Diffstat (limited to 'rquota_server.c')
-rw-r--r-- | rquota_server.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rquota_server.c b/rquota_server.c index c8430a1..fbc8f71 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.11 2002/05/03 07:05:46 jkar8572 Exp $ + * Version: $Id: rquota_server.c,v 1.12 2003/05/21 19:51:10 jkar8572 Exp $ * * Author: Marco van Wieringen <mvw@planets.elm.net> * @@ -49,6 +49,8 @@ int allow_severity = LOG_INFO; int deny_severity = LOG_WARNING; +extern int enable_autofs; + /* * Global unix authentication credentials. */ @@ -158,7 +160,7 @@ setquota_rslt *setquotainfo(int flags, caddr_t * argp, struct svc_req *rqstp) result.status = Q_NOQUOTA; result.setquota_rslt_u.sqr_rquota.rq_bsize = RPC_DQBLK_SIZE; - if (init_mounts_scan(1, &pathname, MS_NO_MNTPOINT) < 0) + if (init_mounts_scan(1, &pathname, MS_NO_MNTPOINT | (enable_autofs ? 0 : MS_NO_AUTOFS)) < 0) goto out; if (!(mnt = get_next_mount())) { end_mounts_scan(); @@ -242,7 +244,7 @@ getquota_rslt *getquotainfo(int flags, caddr_t * argp, struct svc_req * rqstp) result.status = Q_NOQUOTA; result.getquota_rslt_u.gqr_rquota.rq_bsize = RPC_DQBLK_SIZE; - if (init_mounts_scan(1, &pathname, MS_NO_MNTPOINT) < 0) + if (init_mounts_scan(1, &pathname, MS_NO_MNTPOINT | (enable_autofs ? 0 : MS_NO_AUTOFS)) < 0) goto out; if (!(mnt = get_next_mount())) { end_mounts_scan(); |