rem: char *parent, *new;
add: char *parent, *new, *result;
context: totem_disc_resolve_link (const char *dev, const char *buf){  char *parent, *new;  /* is it an absolute path? */  if (g_path_is_absolute (buf) != FALSE)    return g_strdup (buf);  parent = g_path_get_dirname (dev);  new = g_build_filename (parent, buf, NULL);  g_free (parent);  return new;}