Ticket #892 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

user-homedir-pathname on Android

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


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

comment:1 Changed 5 years ago by heller

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

comment:2 Changed 5 years ago by gb

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

(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.)


  • 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.