*p++ = '\n';
*p = 0;
Dmsg0(20, buf);
- Jmsg(jcr, M_INFO, 0, "%s", buf);
+ Jmsg(jcr, M_RESTORED, 0, "%s", buf);
}
ff->sys_fname = get_pool_memory(PM_FNAME);
init_include_exclude_files(ff); /* init lists */
- ff->mtime_only = 1;
+ ff->mtime_only = 0; /* use both st_mtime and st_ctime */
/* Get system path and filename maximum lengths */
path_max = pathconf(".", _PC_PATH_MAX);
}
strcpy(inc->fname, p);
+ p = inc->fname;
len = strlen(p);
/* Zap trailing slashes. */
p += len - 1;
break;
}
}
+#ifdef HAVE_CYGWIN
+ /* Convert any \'s into /'s */
+ for (p=inc->fname; *p; p++) {
+ if (*p == '\\') {
+ *p = '/';
+ }
+ }
+#endif
inc->next = NULL;
/* Chain this one on the end of the list */
if (!ff->included_files_list) {
int len;
struct s_excluded_file *exc, **list;
+#ifdef HAVE_CYGWIN
+ /* Convert any \'s into /'s */
+ for (char *p=fname; *p; p++) {
+ if (*p == '\\') {
+ *p = '/';
+ }
+ }
+#endif
Dmsg1(20, "Add name to exclude: %s\n", fname);
if (strchr(fname, '/')) {
#undef M_MOUNT
#undef M_ERROR_TERM
#undef M_TERM
+#undef M_RESTORED
/*
* Most of these message levels are more or less obvious.
* M_WARNING Job warning message.
* M_INFO Job information message.
*
+ * M_RESTORED An ls -l of each restored file.
+ *
*/
#define M_DEBUG 1 /* debug message */
#define M_MOUNT 10 /* Mount requests */
#define M_ERROR_TERM 11 /* Error termination request (no dump) */
#define M_TERM 12 /* Terminating daemon */
+#define M_RESTORED 13 /* ls -l of restored files */
-#define M_MAX M_TERM /* keep this updated ! */
+#define M_MAX M_RESTORED /* keep this updated ! */
/* Define message destination structure */
/* *** FIXME **** where should be extended to handle multiple values */
{"skipped", M_SKIPPED},
{"mount", M_MOUNT},
{"terminate", M_TERM},
+ {"restored", M_RESTORED},
{"all", M_MAX+1},
{NULL, 0}
};
/* */
#define VERSION "1.30"
#define VSTRING "1"
-#define BDATE "07 April 2003"
-#define LSMDATE "07Apr03"
+#define BDATE "09 April 2003"
+#define LSMDATE "09Apr03"
/* Debug flags */
#define DEBUG 1