Bug 511372 - guestfish doesn't understand '~' in filenames
Summary: guestfish doesn't understand '~' in filenames
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-14 20:31 UTC by Richard W.M. Jones
Modified: 2010-03-27 10:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-03-27 10:39:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2009-07-14 20:31:05 UTC
Description of problem:

><fs> add-drive ~/my.img
libguestfs: error: ~/my.img: No such file or directory

This was reported by 'KVM' here:

http://d.hatena.ne.jp/kvm/20090711/1247323823

Comment 1 Matthew Booth 2009-07-14 21:47:40 UTC
A little man page digging threw up wordexp(3).

Comment 2 Richard W.M. Jones 2009-07-15 10:47:25 UTC
Using wordexp or glob is more complicated because you would
have to prevent it from expanding other globs (eg '*') in the
path.  This patch takes a more direct approach using getpwent:

http://git.et.redhat.com/?p=libguestfs.git;a=commitdiff;h=9449b0fce4145a56df9d43169d61e8b2c4e41b09

Comment 3 Fedora Update System 2009-07-23 15:12:24 UTC
libguestfs-1.0.64-2.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/libguestfs-1.0.64-2.el5

Comment 4 Fedora Update System 2009-07-27 14:45:27 UTC
libguestfs-1.0.64-3.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/libguestfs-1.0.64-3.el5

Comment 5 Fedora Update System 2009-07-29 17:01:04 UTC
libguestfs-1.0.65-2.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/libguestfs-1.0.65-2.el5

Comment 6 Fedora Update System 2009-08-07 08:34:25 UTC
libguestfs-1.0.66-4.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/libguestfs-1.0.66-4.el5

Comment 7 Fedora Update System 2009-08-14 09:14:06 UTC
libguestfs-1.0.67-1.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/libguestfs-1.0.67-1.el5

Comment 8 Fedora Update System 2009-08-18 00:23:03 UTC
libguestfs-1.0.65-2.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2009-08-19 21:55:36 UTC
libguestfs-1.0.68-5.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/libguestfs-1.0.68-5.el5

Comment 10 Fedora Update System 2009-09-08 22:59:44 UTC
libguestfs-1.0.68-5.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Richard W.M. Jones 2010-03-27 10:39:35 UTC
Long fixed upstream:

><fs> add ~/disk.img
><fs>


Note You need to log in before you can comment on or make changes to this bug.