summaryrefslogtreecommitdiff
path: root/edquota.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2007-09-18 16:21:07 +0000
committerjkar8572 <jkar8572>2007-09-18 16:21:07 +0000
commit7b7ea451bf6d780d63318a1e7e756c05553bbe83 (patch)
tree0fd72cf2ac9a60e0e60810bc73d80a4141b3c932 /edquota.c
parentf4e0799803c2ac5aa10d2589c033e93801b903b9 (diff)
Updated manpages to explain --no-mixed-paths (Jan Kara)
Changed the defaults so that tools now use NFSv4 pathnames without leading / by default (Jan Kara)
Diffstat (limited to 'edquota.c')
-rw-r--r--edquota.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/edquota.c b/edquota.c
index cebdb62..ea1a21e 100644
--- a/edquota.c
+++ b/edquota.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California. $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: edquota.c,v 1.21 2007/08/23 19:58:14 jkar8572 Exp $"
+#ident "$Id: edquota.c,v 1.22 2007/09/18 16:21:07 jkar8572 Exp $"
/*
* Disk quota editor.
@@ -64,7 +64,7 @@
#define FL_EDIT_TIMES 2
#define FL_REMOTE 4
#define FL_NUMNAMES 8
-#define FL_MIXED_PATHS 16
+#define FL_NO_MIXED_PATHS 16
char *progname;
@@ -89,7 +89,7 @@ void usage(void)
-g, --group edit group data\n"), stderr);
#if defined(RPC_SETQUOTA)
fputs(_("-r, --remote edit remote quota (via RPC)\n\
--m, --mixed-pathnames trim leading slashes from NFSv4 mountpoints\n"), stderr);
+-m, --no-mixed-pathnames trim leading slashes from NFSv4 mountpoints\n"), stderr);
#endif
fputs(_("-F, --format=formatname edit quotas of a specific format\n\
-p, --prototype=name copy data from a prototype user/group\n\
@@ -117,7 +117,7 @@ int parse_options(int argc, char **argv)
{ "filesystem", 1, NULL, 'f' },
#if defined(RPC_SETQUOTA)
{ "remote", 0, NULL, 'r' },
- { "mixed-pathnames", 0, NULL, 'm' },
+ { "no-mixed-pathnames", 0, NULL, 'm' },
#endif
{ "always-resolve", 0, NULL, 256 },
{ "edit-period", 0, NULL, 't' },
@@ -147,7 +147,7 @@ int parse_options(int argc, char **argv)
flags |= FL_REMOTE;
break;
case 'm':
- flags |= FL_MIXED_PATHS;
+ flags |= FL_NO_MIXED_PATHS;
break;
#endif
case 'u':
@@ -240,7 +240,7 @@ int main(int argc, char **argv)
init_kernel_interface();
handles = create_handle_list(dirname ? 1 : 0, dirname ? &dirname : NULL, quotatype, fmt,
- (flags & FL_MIXED_PATHS) ? IOI_NFS_MIXED_PATHS : 0,
+ (flags & FL_NO_MIXED_PATHS) ? 0 : IOI_NFS_MIXED_PATHS,
(flags & FL_REMOTE) ? 0 : MS_LOCALONLY);
if (!handles[0]) {
dispose_handle_list(handles);