Permalink
Browse files

Use realpath regardless of -t supplied path being absolute or relative

  • Loading branch information...
falconindy committed Mar 23, 2010
1 parent 94858aa commit 4356773aa2df5b21b2a02995435ccee843fbdcdb
Showing with 1 addition and 6 deletions.
  1. +1 −6 aur.c
View
7 aur.c
@@ -106,12 +106,7 @@ int aur_get_tarball(json_t *root) {
if (config->download_dir == NULL) /* Use pwd */
dir = getcwd(NULL, 0);
else {
- if (*(config->download_dir) == '/') { /* Absolute path passed */
- dir = config->download_dir;
- } else {
- /* Resolve relative path to full */
- dir = realpath(config->download_dir, NULL);
- }
+ dir = realpath(config->download_dir, NULL);
}
if (! file_exists(dir)) {

0 comments on commit 4356773

Please sign in to comment.