Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 4356773aa2df5b21b2a02995435ccee843fbdcdb 1 parent 94858aa
@falconindy authored
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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.