Utility freebsd-mtree appears to create an invalid mtree file

Bug #498634 reported by Donald Allwright
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
freebsd-buildutils (Debian)
Fix Released
Unknown
freebsd-buildutils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: freebsd-buildutils

I've been trying to use freebsd-mtree to capture and restore file and directory permissions for a directory tree to be checked into a version control system. I am able to create an mtree file, but when trying to compare the directory with the contents of this file it always fails.
I set up a directory 'test' containing a subdirectory 'test1' in my home directory and ran:
freebsd-mtree -c -p test
Which gave me the output:
# user: testuser
# machine: testuser-laptop
# tree: /home/testuser/test
# date: Sat Dec 19 22:51:16 2009

# .
/set type=file uid=1000 gid=1000 mode=0755 nlink=1
\056 type=dir nlink=3 size=4096 time=1261263072.449459025

# ./test1
\164\145\163\164\061 \
                type=dir nlink=2 size=4096 time=1261263013.626458064
# ./test1
..

..

I piped this to a file 'mtree' then attempted to run:
freebsd-mtree -U -f mtree -p test

which gave me the output:
. extra
 missing (directory not created: No such file or directory)
/ missing (directory not created: File exists)

Any missing files/directories were not recreated, nor were incorrect ownership permissions restored. I don't have ready access to a BSD system to run the original command on, but this looks like it might be a problem with the port to Linux of this tool.

ProblemType: Bug
Architecture: i386
Date: Sat Dec 19 22:42:12 2009
DistroRelease: Ubuntu 9.10
Package: freebsd-buildutils 7.2-1
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: freebsd-buildutils
Tags: ubuntu-unr
Uname: Linux 2.6.31-16-generic i686

Revision history for this message
Donald Allwright (donald-allwright) wrote :
description: updated
Revision history for this message
Daniel Holbach (dholbach) wrote :

Confirmed in 7.2 in Lucid. Linked similar Debian bug.

Changed in freebsd-buildutils (Ubuntu):
status: New → Confirmed
Changed in freebsd-buildutils (Debian):
status: Unknown → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

Fixed in Debian. Filed sync bug 567208.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Fixed in Lucid.

Changed in freebsd-buildutils (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.