aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-12 21:56:00 +0000
committerJason Woodward2005-01-12 21:56:00 +0000
commit71f628282542f41bbc26962ee72b0ef08e2befef (patch)
tree5ba335d4971c153fde0a0befca62856a0eb5b796 /src
parentd22d218d051d1236e35636c872f5aa3112ab8888 (diff)
downloadslapt-get-71f628282542f41bbc26962ee72b0ef08e2befef.tar.gz
removed bad use of strcspn() breaking using ROOT env var with slapt-get
Diffstat (limited to 'src')
-rw-r--r--src/main.h2
-rw-r--r--src/package.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/main.h b/src/main.h
index 36505b1..35008c4 100644
--- a/src/main.h
+++ b/src/main.h
@@ -78,5 +78,3 @@ enum action {
#define _(text) gettext(text)
-#define NAUGHTY_CHARS "$@^#!*()`"
-
diff --git a/src/package.c b/src/package.c
index 1568fab..56b8bb0 100644
--- a/src/package.c
+++ b/src/package.c
@@ -442,8 +442,7 @@ struct pkg_list *get_installed_pkgs(void){
/* Generate package log directory using ROOT env variable if set */
if( getenv(ROOT_ENV_NAME) && strlen(getenv(ROOT_ENV_NAME)) < ROOT_ENV_LEN ){
- if( strcspn(getenv(ROOT_ENV_NAME),NAUGHTY_CHARS) == 0 )
- root_env_entry = getenv(ROOT_ENV_NAME);
+ root_env_entry = getenv(ROOT_ENV_NAME);
}
pkg_log_dirname = slapt_calloc(
strlen(PKG_LOG_DIR)+