tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mtree patches for FreeBSD compat



On Wed, Oct 16, 2013 at 05:28:29PM +0000, Christos Zoulas wrote:
> In article <20131015183627.GA55657%lor.one-eyed-alien.net@localhost>,
> Brooks Davis  <brooks%freebsd.org@localhost> wrote:
> >-=-=-=-=-=-
> >
> >The first one reverts mtree to only output size elements for regular
> >files since that change was recently made to FreeBSD's mtree.  The
> >justification given is that the sizes of some non-files like directories
> >depend on the underlying filesystem and just aren't appropriate for
> >mtree to output.  I think I mostly agree with this reasoning so the
> >following patch inverts the flavor test and restores the old behavior to
> >NetBSD's mtree.
> >
> >The second patch allows mtree files of the form:
> 
> Applied, thanks!

Thanks for committing these and the getid.c fix.

I've got another compatibilty fix for FreeBSD.  I've had to add
stdint.h to the files that were changed to print time_t's using
intmax_t.  Presuably one of the other headers defines it on NetBSD.

-- Brooks

Index: compare.c
===================================================================
--- compare.c   (revision 256652)
+++ compare.c   (working copy)
@@ -47,6 +47,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: create.c
===================================================================
--- create.c    (revision 256652)
+++ create.c    (working copy)
@@ -53,6 +53,7 @@
 #include <fcntl.h>
 #include <grp.h>
 #include <pwd.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
Index: spec.c
===================================================================
--- spec.c      (revision 256652)
+++ spec.c      (working copy)
@@ -80,6 +80,7 @@
 #include <grp.h>
 #include <pwd.h>
 #include <stdarg.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>


Home | Main Index | Thread Index | Old Index