Ticket #892 (closed enhancement: fixed)

Opened 18 months ago

Last modified 17 months ago

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

Changed 18 months ago by heller

  • type changed from defect to enhancement
  • component changed from IDE to other

Changed 17 months 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.)

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.