diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-10-29 12:14:31 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-10-29 12:14:31 +0000 |
| commit | 8758ef9b411a991f1c25c435f885bf35289a54e0 (patch) | |
| tree | 4e3ea0ae014f6c5c613345c9f443ad2ceab17e87 /usr.sbin/pkg_install/lib | |
| parent | 56d3134bfb907d8de0fb4bd6e9e8b386ddc6010e (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib')
| -rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 64e6bcfdc7df..a51e8bed1dc9 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -88,7 +88,7 @@ isfile(const char *fname) return FALSE; } -/* +/* * Check to see if file is a file or symlink pointing to a file and is empty. * If nonexistent or not a file, say "it's empty", otherwise return TRUE if * zero sized. @@ -190,7 +190,7 @@ fileGetURL(const char *base, const char *spec) strcpy(fname, hint); strcat(fname, spec); /* XXX: need to handle .tgz also */ - strcat(fname, ".tbz"); + strcat(fname, ".tbz"); } } else @@ -201,7 +201,7 @@ fileGetURL(const char *base, const char *spec) fname, fetchLastErrString); return NULL; } - + if (isatty(0) || Verbose) printf("Fetching %s...", fname), fflush(stdout); pen[0] = '\0'; @@ -429,11 +429,11 @@ copy_hierarchy(const char *dir, const char *fname, Boolean to) if (*fname == '/') dir = "/"; snprintf(cmd, FILENAME_MAX * 3, "tar cf - -C %s %s | tar xpf -", - dir, fname); + dir, fname); } else snprintf(cmd, FILENAME_MAX * 3, "tar cf - %s | tar xpf - -C %s", - fname, dir); + fname, dir); #ifdef DEBUG printf("Using '%s' to copy trees.\n", cmd); #endif |
