projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new defines in file.h
[unix-history]
/
usr
/
src
/
usr.sbin
/
edquota
/
edquota.c
diff --git
a/usr/src/usr.sbin/edquota/edquota.c
b/usr/src/usr.sbin/edquota/edquota.c
index
0a4e2f8
..
cb367d7
100644
(file)
--- a/
usr/src/usr.sbin/edquota/edquota.c
+++ b/
usr/src/usr.sbin/edquota/edquota.c
@@
-1,5
+1,5
@@
#ifndef lint
#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
/*
#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) {
if (stat(qfilename, &statb) < 0 || statb.st_dev != fsdev)
continue;
if (quota(Q_GETDLIM, uid, fsdev, &dqblk) != 0) {
- register fd = open(qfilename,
F
RDONLY);
+ register fd = open(qfilename,
O_
RDONLY);
if (fd < 0)
continue;
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;
if (read(fd, &dqblk, sizeof dqblk) != sizeof (dqblk)) {
close(fd);
continue;