summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-10-31 00:22:26 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-10-31 00:22:26 +0000
commit907199c194af0cb3912219b808aab13df763c022 (patch)
tree040b0f954a339186b80af486bd1a3c84f15f7477
parentcf9f426f278f57ea74cd22ffda07047c2fb4ce9c (diff)
downloadlibrcc-907199c194af0cb3912219b808aab13df763c022.tar.gz
librcc-907199c194af0cb3912219b808aab13df763c022.tar.bz2
librcc-907199c194af0cb3912219b808aab13df763c022.tar.xz
librcc-907199c194af0cb3912219b808aab13df763c022.zip
Permission fix
- Fixes .rcc directory permissions ( Bug report by AlexMal )
-rw-r--r--ToDo29
-rw-r--r--VERSION2
-rw-r--r--external/rccexternal.c2
-rw-r--r--external/rcclibtranslate.c4
-rw-r--r--src/librcc.c4
-rw-r--r--src/rccdb4.c2
-rw-r--r--src/rccxml.c2
7 files changed, 28 insertions, 17 deletions
diff --git a/ToDo b/ToDo
index 78abbaa..1f80fa9 100644
--- a/ToDo
+++ b/ToDo
@@ -1,12 +1,15 @@
-0.3.x:
- - Buffer managment:
- + SetBufferSize ( 0 - autogrow )
- - Move all recoding functionality on the rccConfig Level
- - Revise Locking Subsystem
- - Load class configurations from the XML files.
-
+0.2.1:
+ - "ctype" should be known class. In the XMMS patch just describe how the playlist patch
+ can be altered from "ctype" to "id3" in the case mpg123 patches are not applied.
+ + Problem. Some times there are broken 'ogg' tags with CP1251 instead of unicode
+ inside. Dissabling autodetection for them will cause incorrect encoding to be
+ displayed.
+ - If autodetected charset is disabled treat the autodetection failed.
+ - If Locale Language is English, - resolve default charset to "Off".
+ - Don't try to translate if postponed translate failed (for some time)
+ - Solve mpg123 slowdown.
-0.4.x:
+0.3.x:
- Language and Encoding autodetection improvements.
+ LibRCD should use DB4 with statistic for different languages
+ The statistic should be gathered using:
@@ -20,7 +23,15 @@
+ Look if there are any offline translation libraries available.
+ Use stardict (or other dictionary) to translate on per-word basis.
+ Try to translate to first parrent encoding if translation to the current one is failed.
- + Transliterate translation mode
+ + Transliterate support for more languages.
+
+0.4.x:
+ - Buffer managment:
+ + SetBufferSize ( 0 - autogrow )
+ - Move all recoding functionality on the rccConfig Level
+ - Revise Locking Subsystem
+ - Load class configurations from the XML files.
+
0.5.x:
- Special encoding.
diff --git a/VERSION b/VERSION
index 0ea3a94..0c62199 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.2.0
+0.2.1
diff --git a/external/rccexternal.c b/external/rccexternal.c
index 292ee5d..b09623d 100644
--- a/external/rccexternal.c
+++ b/external/rccexternal.c
@@ -87,7 +87,7 @@ int main() {
rccLibTranslateInit(rcc_home_dir);
sprintf(addr,"%s/.rcc/comm/",rcc_home_dir);
- mkdir(addr, 00600);
+ mkdir(addr, 00700);
sprintf(addr,"%s/.rcc/comm/%lu.sock", rcc_home_dir, (unsigned long)mypid);
s = socket(PF_UNIX, SOCK_STREAM, 0);
diff --git a/external/rcclibtranslate.c b/external/rcclibtranslate.c
index 46fcd6e..7a36814 100644
--- a/external/rcclibtranslate.c
+++ b/external/rcclibtranslate.c
@@ -139,10 +139,10 @@ int rccLibTranslateInit(const char *rcc_home_dir) {
dbname = (char*)malloc(size*sizeof(char));
if (dbname) {
sprintf(dbname,"%s/.rcc/",rcc_home_dir);
- mkdir(dbname, 00644);
+ mkdir(dbname, 00755);
sprintf(dbname,"%s/.rcc/libtranslate.db/",rcc_home_dir);
- mkdir(dbname, 00644);
+ mkdir(dbname, 00755);
db4ctx = rccDb4CreateContext(dbname, 0);
free(dbname);
diff --git a/src/librcc.c b/src/librcc.c
index 98b609e..1ffe00b 100644
--- a/src/librcc.c
+++ b/src/librcc.c
@@ -333,10 +333,10 @@ int rccInitDb4(rcc_context ctx, const char *name, rcc_db4_flags flags) {
if (!dbname) return -1;
sprintf(dbname,"%s/.rcc/",rcc_home_dir);
- mkdir(dbname, 00644);
+ mkdir(dbname, 00755);
sprintf(dbname,"%s/.rcc/%s.db/",rcc_home_dir,name);
- mkdir(dbname, 00644);
+ mkdir(dbname, 00755);
ctx->db4ctx = rccDb4CreateContext(dbname, flags);
free(dbname);
diff --git a/src/rccdb4.c b/src/rccdb4.c
index 9c21477..6a57a5f 100644
--- a/src/rccdb4.c
+++ b/src/rccdb4.c
@@ -19,7 +19,7 @@ db4_context rccDb4CreateContext(const char *dbpath, rcc_db4_flags flags) {
err = db_env_create(&dbe, 0);
if (err) return NULL;
- err = dbe->open(dbe, dbpath, DB_CREATE|DB_INIT_CDB|DB_INIT_MPOOL, 0);
+ err = dbe->open(dbe, dbpath, DB_CREATE|DB_INIT_CDB|DB_INIT_MPOOL, 00755);
if (err) {
dbe->close(dbe, 0);
return NULL;
diff --git a/src/rccxml.c b/src/rccxml.c
index b40d4fc..db13750 100644
--- a/src/rccxml.c
+++ b/src/rccxml.c
@@ -315,7 +315,7 @@ int rccSave(rcc_context ctx, const char *name) {
if (!config) return -1;
sprintf(config,"%s/.rcc/",rcc_home_dir);
- mkdir(config, 00644);
+ mkdir(config, 00755);
sprintf(config,"%s/.rcc/%s.xml",rcc_home_dir,name);
fd = open(config, O_CREAT|O_RDWR,00644);