From: Kirk McKusick Date: Thu, 26 May 1983 07:03:15 +0000 (-0800) Subject: new defines in file.h X-Git-Tag: BSD-4_2-Snapshot-Development~1770 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/6f9995438ee8039b769a1de5c83293f3d352bfd2 new defines in file.h SCCS-vsn: usr.sbin/edquota/edquota.c 4.3 --- diff --git a/usr/src/usr.sbin/edquota/edquota.c b/usr/src/usr.sbin/edquota/edquota.c index 0a4e2f83b8..cb367d74e7 100644 --- a/usr/src/usr.sbin/edquota/edquota.c +++ b/usr/src/usr.sbin/edquota/edquota.c @@ -1,5 +1,5 @@ #ifndef lint -static char sccsid[] = "@(#)edquota.c 4.2 (Berkeley, from Melbourne) %G%"; +static char sccsid[] = "@(#)edquota.c 4.3 (Berkeley, from Melbourne) %G%"; #endif /* @@ -316,11 +316,11 @@ getdiscq(uid, dq, dqf) if (stat(qfilename, &statb) < 0 || statb.st_dev != fsdev) continue; if (quota(Q_GETDLIM, uid, fsdev, &dqblk) != 0) { - register fd = open(qfilename, FRDONLY); + register fd = open(qfilename, O_RDONLY); if (fd < 0) continue; - lseek(fd, (long)(uid * sizeof dqblk), FSEEK_ABSOLUTE); + lseek(fd, (long)(uid * sizeof dqblk), L_SET); if (read(fd, &dqblk, sizeof dqblk) != sizeof (dqblk)) { close(fd); continue;