diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,7 +37,7 @@ int main(int argc, char *argv[]) const char *cachefile = ".aports.cache.yaml"; char dirpath_buf[PATH_MAX]; char *dirpath = dirpath_buf; - int dirfd; + int dirfd, rc; char *shell_argv[] = {"/bin/sh", NULL}; @@ -83,9 +83,9 @@ int main(int argc, char *argv[]) if (verbose) printf("updating cache for %s\n", dirpath); - aports_cache_refresh(dirfd, cachefile, shell_argv); + rc = aports_cache_refresh(dirfd, cachefile, shell_argv); close(dirfd); - return 0; + return rc; } |