~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to linux-user/path.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
    return root;
83
83
}
84
84
 
85
 
/* This needs to be done after tree is stabalized (ie. no more reallocs!). */
 
85
/* This needs to be done after tree is stabilized (ie. no more reallocs!). */
86
86
static void set_parents(struct pathelem *child, struct pathelem *parent)
87
87
{
88
88
    unsigned int i;
152
152
{
153
153
    /* Only do absolute paths: quick and dirty, but should mostly be OK.
154
154
       Could do relative by tracking cwd. */
155
 
    if (!base || name[0] != '/')
 
155
    if (!base || !name || name[0] != '/')
156
156
        return name;
157
157
 
158
158
    return follow_path(base, name) ?: name;