|
Lines 107-112
Link Here
|
| 107 |
|
107 |
|
| 108 |
int qflag; |
108 |
int qflag; |
| 109 |
int vflag; |
109 |
int vflag; |
|
|
110 |
int lflag; |
| 110 |
|
111 |
|
| 111 |
int |
112 |
int |
| 112 |
main(argc, argv) |
113 |
main(argc, argv) |
|
Lines 118-124
Link Here
|
| 118 |
int i, gflag = 0, uflag = 0; |
119 |
int i, gflag = 0, uflag = 0; |
| 119 |
char ch; |
120 |
char ch; |
| 120 |
|
121 |
|
| 121 |
while ((ch = getopt(argc, argv, "ugvq")) != -1) { |
122 |
while ((ch = getopt(argc, argv, "ugvql")) != -1) { |
| 122 |
switch(ch) { |
123 |
switch(ch) { |
| 123 |
case 'g': |
124 |
case 'g': |
| 124 |
gflag++; |
125 |
gflag++; |
|
Lines 132-137
Link Here
|
| 132 |
case 'q': |
133 |
case 'q': |
| 133 |
qflag++; |
134 |
qflag++; |
| 134 |
break; |
135 |
break; |
|
|
136 |
case 'l': |
| 137 |
lflag++; |
| 138 |
break; |
| 135 |
default: |
139 |
default: |
| 136 |
usage(); |
140 |
usage(); |
| 137 |
} |
141 |
} |
|
Lines 471-476
Link Here
|
| 471 |
errx(2, "out of memory"); |
475 |
errx(2, "out of memory"); |
| 472 |
} |
476 |
} |
| 473 |
if (strcmp(fst[i].f_fstypename, "nfs") == 0) { |
477 |
if (strcmp(fst[i].f_fstypename, "nfs") == 0) { |
|
|
478 |
if (lflag) |
| 479 |
continue; |
| 474 |
if (getnfsquota(&fst[i], NULL, qup, id, quotatype) |
480 |
if (getnfsquota(&fst[i], NULL, qup, id, quotatype) |
| 475 |
== 0) |
481 |
== 0) |
| 476 |
continue; |
482 |
continue; |