mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Sync with head
This commit is contained in:
commit
4085a92bc9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/quota64/; revision=197511
|
@ -176,9 +176,8 @@ sendquota(struct svc_req *request, SVCXPRT *transp)
|
|||
getq_rslt.getquota_rslt_u.gqr_rquota.rq_ftimeleft =
|
||||
dqblk.dqb_itime - timev.tv_sec;
|
||||
}
|
||||
if (!svc_sendreply(transp, (xdrproc_t)xdr_getquota_rslt, &getq_rslt)) {
|
||||
if (!svc_sendreply(transp, (xdrproc_t)xdr_getquota_rslt, &getq_rslt))
|
||||
svcerr_systemerr(transp);
|
||||
}
|
||||
if (!svc_freeargs(transp, (xdrproc_t)xdr_getquota_args, &getq_args)) {
|
||||
syslog(LOG_ERR, "unable to free arguments");
|
||||
exit(1);
|
||||
|
@ -193,7 +192,6 @@ printerr_reply(SVCXPRT *transp) /* when a reply to a request failed */
|
|||
int save_errno;
|
||||
|
||||
save_errno = errno;
|
||||
|
||||
caller = (struct sockaddr *)svc_getrpccaller(transp)->buf;
|
||||
getnameinfo(caller, caller->sa_len, name, sizeof (name),
|
||||
NULL, 0, NI_NUMERICHOST);
|
||||
|
@ -257,7 +255,7 @@ getfsquota(long id, char *path, struct dqblk *dqblk)
|
|||
qcmd = QCMD(Q_GETQUOTA, USRQUOTA);
|
||||
|
||||
for (fs = fs_begin; fs != NULL; fs = fs->fs_next) {
|
||||
/* where the devise is the same as path */
|
||||
/* where the device is the same as path */
|
||||
if (fs->st_dev != st_path.st_dev)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue