aboutsummaryrefslogtreecommitdiff
path: root/q.c
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2006-01-23 12:50:58 +0000
committerNed Ludd <solar@gentoo.org>2006-01-23 12:50:58 +0000
commit7b54f5fd703a06f812088ce72f36c2022d989c83 (patch)
treec69d349fef3cb2f830fbab8f8f8dbeb390491a86 /q.c
parent- update make depends (diff)
downloadportage-utils-7b54f5fd703a06f812088ce72f36c2022d989c83.tar.gz
portage-utils-7b54f5fd703a06f812088ce72f36c2022d989c83.tar.bz2
portage-utils-7b54f5fd703a06f812088ce72f36c2022d989c83.zip
- add options to ignore checksums so you can use local binrepo files also. Add --tree alike view to -qpvK output
Diffstat (limited to 'q.c')
-rw-r--r--q.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/q.c b/q.c
index 93fca639..51603c7b 100644
--- a/q.c
+++ b/q.c
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2006 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/q.c,v 1.25 2006/01/05 03:35:43 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/q.c,v 1.26 2006/01/23 12:50:58 solar Exp $
*
* Copyright 2005-2006 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org>
@@ -18,7 +18,7 @@ static const char *q_opts_help[] = {
"Reinitialize ebuild cache",
COMMON_OPTS_HELP
};
-static const char q_rcsid[] = "$Id: q.c,v 1.25 2006/01/05 03:35:43 vapier Exp $";
+static const char q_rcsid[] = "$Id: q.c,v 1.26 2006/01/23 12:50:58 solar Exp $";
#define q_usage(ret) usage(ret, Q_FLAGS, q_long_opts, q_opts_help, lookup_applet_idx("q"))
@@ -84,8 +84,9 @@ int q_main(int argc, char **argv)
case 'r': reinitialize = 1; return 0;
case 'i': {
char buf[_Q_PATH_MAX];
- printf("Installing symlinks:\n");
+ /* always bzero a buffer before using readlink() */
memset(buf, 0x00, sizeof(buf));
+ printf("Installing symlinks:\n");
if ((readlink("/proc/self/exe", buf, sizeof(buf))) == (-1)) {
warnf("could not readlink '/proc/self/exe': %s", strerror(errno));
return 1;