]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/notify.c
Add option to specify directory to search for credentials cache files
[nfs-utils.git] / utils / statd / notify.c
index 89d2946abcc7d7c3ef6a36f26869fe742448d10c..d7aa1ddc5e1d712426db9069cfbe15bdf8ab11cc 100644 (file)
@@ -10,7 +10,9 @@
  * NSM notify list handling.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <dirent.h>
 #include <errno.h>
@@ -54,10 +56,10 @@ notify_hosts(void)
                 || matchhostname(de->d_name, "localhost")) {
                        char *fname;
                        fname=xmalloc(strlen(SM_BAK_DIR)+sizeof(de->d_name)+2);
-                       dprintf(L_DEBUG, "We're on our own notify list?!?");
-                       sprintf(fname, SM_BAK_DIR "/%s", de->d_name);
+                       dprintf(N_DEBUG, "We're on our own notify list?!?");
+                       sprintf(fname, "%s/%s",  SM_BAK_DIR, de->d_name);
                        if (unlink(fname)) 
-                               log(L_ERROR, "unlink(%s): %s", 
+                               note(N_ERROR, "unlink(%s): %s", 
                                        fname, strerror(errno));
                        free(fname);
                        continue;