sm-notify - use state directory provided via ./configure
authorNeil Brown <neilb@suse.de>
Tue, 20 Mar 2007 00:50:14 +0000 (11:50 +1100)
committerNeil Brown <neilb@suse.de>
Tue, 20 Mar 2007 00:50:14 +0000 (11:50 +1100)
utils/statd/sm-notify.c

index 0ea3977..b7a5dd5 100644 (file)
 #include <grp.h>
 
 #ifndef BASEDIR
-#define BASEDIR                "/var/lib/nfs"
+# ifdef NFS_STATEDIR
+#  define BASEDIR              NFS_STATEDIR
+# else
+#  define BASEDIR              "/var/lib/nfs"
+# endif
 #endif
 
 #define DEFAULT_SM_STATE_PATH  BASEDIR "/state"