Deleted Added
full compact
edquota.c (124830) edquota.c (126201)
1/*
2 * Copyright (c) 1980, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Robert Elz at The University of Melbourne.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static char sccsid[] = "@(#)edquota.c 8.1 (Berkeley) 6/6/93";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1980, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Robert Elz at The University of Melbourne.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static char sccsid[] = "@(#)edquota.c 8.1 (Berkeley) 6/6/93";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/usr.sbin/edquota/edquota.c 124830 2004-01-22 07:23:36Z grehan $");
49__FBSDID("$FreeBSD: head/usr.sbin/edquota/edquota.c 126201 2004-02-24 20:58:16Z ceri $");
50
51/*
52 * Disk quota editor.
53 */
54#include <sys/param.h>
55#include <sys/stat.h>
56#include <sys/file.h>
57#include <sys/wait.h>

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

105 long id, protoid;
106 long long lim;
107 int i, quotatype, range, tmpfd;
108 uid_t startuid, enduid;
109 u_int32_t *limp;
110 char *protoname, *cp, *oldoptarg;
111 int eflag = 0, tflag = 0, pflag = 0, ch;
112 char *fspath = NULL;
50
51/*
52 * Disk quota editor.
53 */
54#include <sys/param.h>
55#include <sys/stat.h>
56#include <sys/file.h>
57#include <sys/wait.h>

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

105 long id, protoid;
106 long long lim;
107 int i, quotatype, range, tmpfd;
108 uid_t startuid, enduid;
109 u_int32_t *limp;
110 char *protoname, *cp, *oldoptarg;
111 int eflag = 0, tflag = 0, pflag = 0, ch;
112 char *fspath = NULL;
113 char buf[30];
113 char buf[MAXLOGNAME];
114
115 if (argc < 2)
116 usage();
117 if (getuid())
118 errx(1, "permission denied");
119 quotatype = USRQUOTA;
120 protoprivs = NULL;
121 while ((ch = getopt(argc, argv, "ugtf:p:e:")) != -1) {

--- 728 unchanged lines hidden ---
114
115 if (argc < 2)
116 usage();
117 if (getuid())
118 errx(1, "permission denied");
119 quotatype = USRQUOTA;
120 protoprivs = NULL;
121 while ((ch = getopt(argc, argv, "ugtf:p:e:")) != -1) {

--- 728 unchanged lines hidden ---