#endif
#include <unistd.h>
+#include <errno.h>
#include <rpc/rpc.h>
#include "rquota.h"
#include <stdlib.h>
}
}
+ if (chdir(NFS_STATEDIR)) {
+ fprintf(stderr, "%s: chdir(%s) failed: %s\n",
+ argv [0], NFS_STATEDIR, strerror(errno));
+
+ exit(1);
+ }
+
/* WARNING: the following works on Linux and SysV, but not BSD! */
signal(SIGCHLD, SIG_IGN);