Skip to contentSkip to conversation

exportfs: Exit with correct value when an error occurs

PATCH New Steve Dickson 1 participant 1 message Jan 17, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exportfs: Exit with correct value when an error occurs

---
 support/nfs/exports.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/nfs/exports.c +1 -1
index d18667f..819d6c4 100644
@@ -366,7 +366,7 @@ mkexportent(char *hname, char *path, char *options)
 	ee.e_hostname = xstrdup(hname);
 
 	if (strlen(path) >= sizeof(ee.e_path)) {
-		xlog(L_WARNING, "path name %s too long", path);
+		xlog(L_ERROR, "path name %s too long", path);
 		return NULL;
 	}
 	strncpy(ee.e_path, path, sizeof (ee.e_path));
Signature · 1 line
1.8.3.1