-/*
- * Encode and decode standard Unix attributes and
- * Extended attributes for Win32 and
- * other non-Unix systems, or Unix systems with ACLs, ...
- *
- * Kern Sibbald, October MMII
- *
- * Version $Id$
- *
- */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2002-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2002-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ * Encode and decode standard Unix attributes and
+ * Extended attributes for Win32 and
+ * other non-Unix systems, or Unix systems with ACLs, ...
+ *
+ * Kern Sibbald, October MMII
+ *
+ * Version $Id$
+ *
+ */
#include "bacula.h"
#include "find.h"
}
}
+ /*
+ * We do not restore sockets, so skip trying to restore their
+ * attributes.
+ */
+ if (attr->type == FT_SPEC && S_ISSOCK(attr->statp.st_mode)) {
+ goto bail_out;
+ }
+
ut.actime = attr->statp.st_atime;
ut.modtime = attr->statp.st_mtime;
}
#endif
}
+
+bail_out:
pm_strcpy(attr->ofname, "*none*");
umask(old_mask);
return ok;
-/*
- * Create a file, and reset the modes
- *
- * Kern Sibbald, November MM
- *
- * Version $Id$
- *
- */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ * Create a file, and reset the modes
+ *
+ * Kern Sibbald, November MM
+ *
+ * Version $Id$
+ *
+ */
#include "bacula.h"
#include "find.h"
attr->ofname, be.strerror());
return CF_ERROR;
}
- } else if(S_ISSOCK(attr->statp.st_mode)) {
+ } else if (S_ISSOCK(attr->statp.st_mode)) {
Dmsg1(200, "Skipping restore of socket: %s\n", attr->ofname);
} else {
Dmsg1(200, "Restore node: %s\n", attr->ofname);
* preventing this. So attempt to disable, retry link,
* and reset flags.
* Note that BSD securelevel may prevent disabling flag.
- */
+ */
if (stat(attr->olname, &s) == 0 && s.st_flags != 0) {
if (chflags(attr->olname, 0) == 0) {
#undef VERSION
#define VERSION "2.0.3"
-#define BDATE "16 February 2007"
-#define LSMDATE "16Feb07"
+#define BDATE "19 February 2007"
+#define LSMDATE "19Feb07"
#define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n"
#define BYEAR "2007" /* year for copyright messages in progs */
Technical notes on version 2.0
General:
+19Feb07
+kes Restore of sockets created false error messages because Bacula
+ no longer restores sockets, but the code was still trying to
+ set the attributes on a non-existent file. Reported by a user.
16Feb07
kes Fix encryption deblocking bug, which caused some restored files
to be truncated. This fixes bug #763.