quota.c (f05b9584faacf79684e60b09155afa016b5ec4cf) quota.c (04389c855e56d1715637fa43575ec13455a68b2e)
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1980, 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Robert Elz at The University of Melbourne.

--- 201 unchanged lines hidden (view full) ---

210 if (pwd == NULL)
211 name = "(no account)";
212 else
213 name = pwd->pw_name;
214 return(showquotas(USRQUOTA, uid, name));
215}
216
217/*
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1980, 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Robert Elz at The University of Melbourne.

--- 201 unchanged lines hidden (view full) ---

210 if (pwd == NULL)
211 name = "(no account)";
212 else
213 name = pwd->pw_name;
214 return(showquotas(USRQUOTA, uid, name));
215}
216
217/*
218 * Print out quotas for a specifed user name.
218 * Print out quotas for a specified user name.
219 */
220static int
221showusrname(char *name)
222{
223 struct passwd *pwd = getpwnam(name);
224
225 if (pwd == NULL) {
226 warnx("%s: unknown user", name);

--- 14 unchanged lines hidden (view full) ---

241 if (grp == NULL)
242 name = "(no entry)";
243 else
244 name = grp->gr_name;
245 return(showquotas(GRPQUOTA, gid, name));
246}
247
248/*
219 */
220static int
221showusrname(char *name)
222{
223 struct passwd *pwd = getpwnam(name);
224
225 if (pwd == NULL) {
226 warnx("%s: unknown user", name);

--- 14 unchanged lines hidden (view full) ---

241 if (grp == NULL)
242 name = "(no entry)";
243 else
244 name = grp->gr_name;
245 return(showquotas(GRPQUOTA, gid, name));
246}
247
248/*
249 * Print out quotas for a specifed group name.
249 * Print out quotas for a specified group name.
250 */
251static int
252showgrpname(char *name)
253{
254 struct group *grp = getgrnam(name);
255
256 if (grp == NULL) {
257 warnx("%s: unknown group", name);

--- 442 unchanged lines hidden ---
250 */
251static int
252showgrpname(char *name)
253{
254 struct group *grp = getgrnam(name);
255
256 if (grp == NULL) {
257 warnx("%s: unknown group", name);

--- 442 unchanged lines hidden ---