From d4a408776d611cd62235232d65d488d02fca78e4 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 5 Nov 2013 14:03:53 -0500 Subject: exportfs: exit with error code if there was any error (take 2). exportfs currently exits with a non-zero error for some errors, but not for others. It does this by having various support routines set the global variable "export_errno". Change this to have 'xlog' set export_errno if an ERROR is reported. That way all errors will be caught. Note that the exit error code is changed from 22 (EINVAL) to the more traditional '1'. Signed-off-by: NeilBrown Signed-off-by: Steve Dickson --- support/include/exportfs.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'support/include/exportfs.h') diff --git a/support/include/exportfs.h b/support/include/exportfs.h index 1fbf754..97b2327 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -179,7 +179,4 @@ struct export_features { struct export_features *get_export_features(void); void fix_pseudoflavor_flags(struct exportent *ep); -/* Record export error. */ -extern int export_errno; - #endif /* EXPORTFS_H */ -- cgit