diff options
author | jkar8572 <jkar8572> | 2003-12-02 13:04:20 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2003-12-02 13:04:20 +0000 |
commit | 55695372e3d4d56f4ffa7dce973f97981e846ef0 (patch) | |
tree | ad88b360f2602ce8b9836a665e329fabeab36b09 /rquota_server.c | |
parent | ab3c71ee7d104782ef8576e0622563c35515c619 (diff) | |
download | linuxquota-55695372e3d4d56f4ffa7dce973f97981e846ef0.tar.gz |
Implementing alternative port for rpc.rquotad to listen on.
Diffstat (limited to 'rquota_server.c')
-rw-r--r-- | rquota_server.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/rquota_server.c b/rquota_server.c index 6e20d74..3f2a6fd 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.13 2003/10/18 17:32:49 jkar8572 Exp $ + * Version: $Id: rquota_server.c,v 1.14 2003/12/02 13:04:20 jkar8572 Exp $ * * Author: Marco van Wieringen <mvw@planets.elm.net> * @@ -49,7 +49,9 @@ int allow_severity = LOG_INFO; int deny_severity = LOG_WARNING; -extern int enable_autofs; +/* Options from rquota_svc.c */ +#define FL_AUTOFS 4 +extern int flags; /* * Global unix authentication credentials. @@ -160,7 +162,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_QUIET | MS_NO_MNTPOINT | (enable_autofs ? 0 : MS_NO_AUTOFS)) < 0) + if (init_mounts_scan(1, &pathname, MS_QUIET | MS_NO_MNTPOINT | ((flags & FL_AUTOFS) ? 0 : MS_NO_AUTOFS)) < 0) goto out; if (!(mnt = get_next_mount())) { end_mounts_scan(); @@ -244,7 +246,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_QUIET | MS_NO_MNTPOINT | (enable_autofs ? 0 : MS_NO_AUTOFS)) < 0) + if (init_mounts_scan(1, &pathname, MS_QUIET | MS_NO_MNTPOINT | ((flags & FL_AUTOFS) ? 0 : MS_NO_AUTOFS)) < 0) goto out; if (!(mnt = get_next_mount())) { end_mounts_scan(); |