+2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
+
+ * utils/mountd/mountd.c(main): getopt string fix for 'o'
+ * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
+ * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
+ the caches.
+ * support/include/nfs/export.h: Reserve a bit for possible ACL
+ related use.
2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
#define NFSEXP_NOAUTHNLM 0x0800
#define NFSEXP_FSID 0x2000
#define NFSEXP_CROSSMNT 0x4000
-#define NFSEXP_ALLFLAGS 0x7FFF
+#define NFSEXP_NOACL 0x8000 /* reserved for possible ACL related use */
+#define NFSEXP_ALLFLAGS 0xFFFF
#endif /* _NSF_EXPORT_H */
fprintf(stderr, "exportfs: -r and -u are incompatible.\n");
return 1;
}
- if (optind == argc && ! f_all) {
- xtab_export_read();
- dump(f_verbose);
- return 0;
- }
+ if (optind == argc && ! f_all)
+ if (force_flush) {
+ cache_flush(1);
+ } else {
+ xtab_export_read();
+ dump(f_verbose);
+ return 0;
+ }
new_cache = check_new_cache();
if (p == epath) p++;
*p = '\0';
}
- free(hp);
switch (error) {
case bad_path:
/* Parse the command line options and arguments. */
opterr = 0;
- while ((c = getopt_long(argc, argv, "on:Fd:f:p:P:hN:V:v", longopts, NULL)) != EOF)
+ while ((c = getopt_long(argc, argv, "o:n:Fd:f:p:P:hN:V:v", longopts, NULL)) != EOF)
switch (c) {
case 'o':
descriptors = atoi(optarg);