diff options
author | Steve Dickson <steved@redhat.com> | 2014-01-17 11:17:16 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-01-20 15:51:46 -0500 |
commit | 67014b27eae72ab3bb633232a7d8ed8802349e77 (patch) | |
tree | 800b701e36b0b4b622e4a03732d0ffe74012f85f | |
parent | f4f372ae316a650b4e54c26758af964b5a6d9cbf (diff) | |
download | nfs-utils-67014b27eae72ab3bb633232a7d8ed8802349e77.tar.gz nfs-utils-67014b27eae72ab3bb633232a7d8ed8802349e77.tar.xz nfs-utils-67014b27eae72ab3bb633232a7d8ed8802349e77.zip |
exportfs: Exit with correct value when an error occurs
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | support/nfs/exports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c index d18667f..819d6c4 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -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)); |