nfs-utils/nfs-utils-1.2.4-exportfs-nolog.patch
Steve Dickson c1f844827f - Added StandardError=syslog+console to all the service files
so startup errors will be logged.
- Changed exportfs to only log errors on existing /etc/export.d
  directory, which eliminates a needless syslog entry.
- Automount /proc/fs/nfsd for rpc.nfsd

Signed-off-by: Steve Dickson <steved@redhat.com>
2011-08-24 14:38:38 -04:00

14 lines
531 B
Diff

diff -up nfs-utils-1.2.4/utils/exportfs/exportfs.c.orig nfs-utils-1.2.4/utils/exportfs/exportfs.c
--- nfs-utils-1.2.4/utils/exportfs/exportfs.c.orig 2011-06-30 09:00:42.000000000 -0400
+++ nfs-utils-1.2.4/utils/exportfs/exportfs.c 2011-08-24 11:00:19.007352000 -0400
@@ -498,6 +498,9 @@ export_d_read(const char *dname)
struct dirent **namelist = NULL;
+ if (access(dname, X_OK) < 0)
+ return;
+
n = scandir(dname, &namelist, NULL, versionsort);
if (n < 0)
xlog(L_NOTICE, "scandir %s: %s\n", dname, strerror(errno));