Make syslog a separate option, and do it better.
[fwd] / file.c
diff --git a/file.c b/file.c
index 300ac04..b0a79dc 100644 (file)
--- a/file.c
+++ b/file.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: file.c,v 1.1 1999/07/26 23:33:32 mdw Exp $
+ * $Id: file.c,v 1.3 1999/12/22 15:43:47 mdw Exp $
  *
  * File source and target
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: file.c,v $
+ * Revision 1.3  1999/12/22 15:43:47  mdw
+ * Fix log messages.
+ *
+ * Revision 1.2  1999/10/22 22:47:13  mdw
+ * New (empty) endpoint method required.
+ *
  * Revision 1.1  1999/07/26 23:33:32  mdw
  * New sources and targets.
  *
@@ -142,7 +148,7 @@ static void fept_close(endpt *e)
 
 /* --- Endpoint operations table --- */
 
-static endpt_ops fept_ops = { 0, fept_wclose, fept_close };
+static endpt_ops fept_ops = { 0, 0, fept_wclose, fept_close };
 
 /*----- General operations on sources and targets -------------------------*/
 
@@ -435,7 +441,7 @@ static endpt *file_endpt(fdata *f, const char *desc)
 
       if (fd != -1) {
        if (fattr_apply(f->out.u.name, &f->fa)) {
-         fw_log(-1, "[%s] couldn't apply file attributes: %s",
+         fw_log(-1, "[%s] couldn't apply file attributes to `%s': %s",
                 desc, f->out.u.name, strerror(errno));
        }
       } else if ((fd = open(f->out.u.name, m & ~O_CREAT)) < 0) {