home-expand.c revision cd7dbe48b6b685063f056db670980a57a66a2638
/* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "home-expand.h"
#include <stdlib.h>
#include <pwd.h>
/* expand ~/ or ~user/ in beginning of path */
const char *home_expand(const char *path)
{
return path;
} else {
if (p == NULL) {
path = "";
} else {
path = p+1;
}
}
return orig_path;
else if (*path == '\0')
else
}