Utility freebsd-mtree appears to create an invalid mtree file
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
# ./test1
\164\145\
# ./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
ProcVersionSign
SourcePackage: freebsd-buildutils
Tags: ubuntu-unr
Uname: Linux 2.6.31-16-generic i686
description: | updated |
Changed in freebsd-buildutils (Debian): | |
status: | Unknown → Fix Released |
Confirmed in 7.2 in Lucid. Linked similar Debian bug.