Opened 8 years ago

Closed 8 years ago

#892 closed enhancement (fixed)

user-homedir-pathname on Android

Reported by: heller Owned by:
Priority: normal Milestone:
Component: other Version: trunk
Keywords: Cc:

Description

user-homedir-pathname on Android seems to hardcoded to /data/local. CCL could look at the $HOME environment variable first to make this more configurable.

Change History (2)

comment:1 Changed 8 years ago by heller

  • Component changed from IDE to other
  • Type changed from defect to enhancement

comment:2 Changed 8 years ago by gb

  • Resolution set to fixed
  • Status changed from new to closed

(In [15146]) Optionally use environment variables to initilize CCL's notion of some filesystem paths, if CCL:*TRUST-PATHS-FROM-ENVIRONMENT* is true (as it is by default.)

Specifically:

  • on Unix systems (including Android), try to use the value of the "HOME" environment variable to initialize (USER-HOMEDIR-PATHNAME).
  • On Android (only) for now, make TEMP-PATHNAME try to use the value of TMPDIR if the directory component of the value returned by #_tmpnam doesn't exist. (It seems to be "/tmp", which would make sense if /tmp existed on Android.)

It's possible that someone might have "HOME" set incorrectly, and that trusting (easily spoofed) environment variables opens security vulnerabilities. (The glibc docs mention the latter possibility, then note that env variables are usually used because of their convenience.)

Fixes ticket:892 and fixes ticket:893.

Note: See TracTickets for help on using tickets.