Revision
385
Author
kvv@apple.com
Date
2008-09-17 23:42:57 -0700 (Wed, 17 Sep 2008)

Log Message

UNIX03 changes

Modified Paths

Diff

Modified: trunk/darwinup/Archive.h (384 => 385)


--- trunk/darwinup/Archive.h	2008-09-18 01:06:55 UTC (rev 384)
+++ trunk/darwinup/Archive.h	2008-09-18 06:42:57 UTC (rev 385)
@@ -21,6 +21,7 @@
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#include <stdint.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <time.h>

Modified: trunk/darwinup/Depot.cpp (384 => 385)


--- trunk/darwinup/Depot.cpp	2008-09-18 01:06:55 UTC (rev 384)
+++ trunk/darwinup/Depot.cpp	2008-09-18 06:42:57 UTC (rev 385)
@@ -335,8 +335,11 @@
 			// If we're going to need to squirrel away data, create
 			// the directory hierarchy now.
 			if (INFO_TEST(actual->info(), FILE_INFO_ROLLBACK_DATA)) {
-				const char* path = actual->path();
+				char path[PATH_MAX];
 				char* backup_dirpath;
+
+				size_t len = strlcpy(path, actual->path(), sizeof(path));
+				assert(len <= sizeof(path));
 				
 				const char* dir = dirname(path);
 				assert(dir != NULL);

Modified: trunk/darwinup/Makefile (384 => 385)


--- trunk/darwinup/Makefile	2008-09-18 01:06:55 UTC (rev 384)
+++ trunk/darwinup/Makefile	2008-09-18 06:42:57 UTC (rev 385)
@@ -11,8 +11,12 @@
 
 # libredo.o is generated from cctools_ofiles
 
+REDO=$(shell if [ -f /usr/local/lib/libredo_prebinding.a ]; then \
+		echo /usr/local/lib/libredo_prebinding.a ; else \
+		echo libredo.o ; fi)
+
 darwinup: Archive.o Depot.o Digest.o File.o SerialSet.o Utils.o main.o \
-	  libredo.o
+	$(REDO)
 	g++ -lcrypto -lsqlite3 -o $@ $^
 
 clean:

Modified: trunk/darwinup/SerialSet.h (384 => 385)


--- trunk/darwinup/SerialSet.h	2008-09-18 01:06:55 UTC (rev 384)
+++ trunk/darwinup/SerialSet.h	2008-09-18 06:42:57 UTC (rev 385)
@@ -21,6 +21,7 @@
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#include <stdint.h>
 #include <sys/types.h>
 
 // a variably lengthed set of serial numbers from the database

Modified: trunk/darwinup/Utils.h (384 => 385)


--- trunk/darwinup/Utils.h	2008-09-18 01:06:55 UTC (rev 384)
+++ trunk/darwinup/Utils.h	2008-09-18 06:42:57 UTC (rev 385)
@@ -21,6 +21,7 @@
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#include <stdint.h>
 #include <sys/types.h>
 #include <fts.h>