tech-userlevel archive

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

Re: Increasing FreeBSD compatibility in mtree



On Tue, Dec 11, 2012 at 01:40:22PM -0600, Brooks Davis wrote:
> Thanks to Christos for merging the majority of my changes.  I've found a few 
> minor
> issues while updating my tree that are corrected in the following diff.  The 
> issues are:
> 
>  - -n is incorrectly supressing the ".." lines.
>  - two entries for rmd160digest in misc.c.
>  - No mention of -t in the usage message or the manpage SYNOPSIS
>  - No "j" in the getopt string.

I found one more instance of -n supressing non-comment space.  This
patch bring in back in line with FreeBSD.

Thanks,
Brooks

Index: create.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/mtree/create.c,v
retrieving revision 1.66
diff -u -r1.66 create.c
--- create.c    12 Dec 2012 15:50:35 -0000      1.66
+++ create.c    14 Dec 2012 22:26:10 -0000
@@ -136,8 +136,9 @@
                }
                switch(p->fts_info) {
                case FTS_D:
+                       printf("\n");
                        if (!nflag)
-                               printf("\n# %s\n", p->fts_path);
+                               printf("# %s\n", p->fts_path);
                        statd(t, p, &uid, &gid, &mode, &flags);
                        statf(indent, p);
                        break;

Attachment: pgp0DbdvwfAVZ.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index