]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 0ea3977d4c047f48e3ce31cb34f6089405da08de..b7a5dd50b0e880c4a4b1d391c748e57c647bb5e3 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"